Skip to content

Conversation

@georgeh0
Copy link
Member

@georgeh0 georgeh0 commented Oct 8, 2025

fixes #1163

@georgeh0 georgeh0 requested a review from Copilot October 8, 2025 02:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR significantly expands the language detection capabilities by adding support for many more programming languages and file extensions. The refactoring changes the internal structure from a function-based approach to a more efficient static initialization pattern.

Key Changes:

  • Refactored language registration from function calls to inline closure-based initialization
  • Expanded support from ~20 languages to 100+ languages including ActionScript, Ada, Astro, Cairo, Elixir, Haskell, and many others
  • Added comprehensive file extension mappings for existing and new languages (e.g., JavaScript now supports 25+ extensions)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@georgeh0 georgeh0 merged commit b8c7172 into main Oct 8, 2025
12 checks passed
@georgeh0 georgeh0 deleted the g/detect-lang branch October 8, 2025 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Expose a separate function to extract programming language out of filename

2 participants