gritql
gritql copied to clipboard
Aliases for --lang.
trafficstars
Issue-: #445
Aliases for --lang.
Added the from_string_or_alias function to handle both full language names and their aliases.
Summary by CodeRabbit
-
New Features
- Introduced a new method for creating
PatternLanguageinstances from string names and optional flavors, enhancing language identification flexibility.
- Introduced a new method for creating
-
Improvements
- Updated existing methods to utilize the new method, streamlining the logic for language identification and improving maintainability.
- Enhanced language pattern determination in the CLI by allowing for more flexible handling of language aliases and string representations.
- Added support for additional programming languages with new pattern aliases, improving the robustness of language recognition.