-
I would like to have syntax highlighting for It looks like GH supports using tree-sitter grammars for highlighting, but I couldn't find if they accept new language contributions, or if they do, where to make them. Can anyone clarify? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
There isn't currently a public process adding a tree-sitter grammar as this isn't handled by Linguist. This is handled internally by another team that controls the syntax highlighting service. The best I can suggest is starting a discussion at https://git.luolix.topmunity or opening a support ticket using the "Contact GitHub" link at the bottom of any page on GitHub asking for this to be considered. If you have a TextMate compatible grammar, we can certainly add support for the language (we'll need to do this anyway) and use that via Linguist in the mean time, assuming the new language meets the documented popularity requirements. See the CONTRIBUTING.md file for more deets. If and when a Treesitter grammar is implemented, it'll automatically take over from the TextMate grammar. |
Beta Was this translation helpful? Give feedback.
There isn't currently a public process adding a tree-sitter grammar as this isn't handled by Linguist. This is handled internally by another team that controls the syntax highlighting service. The best I can suggest is starting a discussion at https://git.luolix.topmunity or opening a support ticket using the "Contact GitHub" link at the bottom of any page on GitHub asking for this to be considered.
If you have a TextMate compatible grammar, we can certainly add support for the language (we'll need to do this anyway) and use that via Linguist in the mean time, assuming the new language meets the documented popularity requirements. See the CONTRIBUTING.md file for more deets. If and when a Tre…