github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.08k stars 4.19k forks source link

How to convert from textmate to tree sitter #5805

Closed lpil closed 2 years ago

lpil commented 2 years ago

Hello!

Gleam has a tree sitter grammar that's of a higher quality than the existing textmate one. Is there a process for upgrading to use the tree-sitter grammar?

Thanks, Louis

lildude commented 2 years ago

There isn't currently a public process of switching to the 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 opening a support ticket using the "Contact GitHub" link at the bottom of any page on GitHub asking for this to be considered.

This should get the request onto the right team's radar. Feel free to reference this discussion and my handle and I can help direct the support team if they need any help.

lpil commented 2 years ago

Thank you

asymmetric commented 1 year ago

@lpil has the switch happened? Asking because I'm interested in doing the same for Nix (assuming GitHub doesn't already use the tree-sitter-based grammar).

lpil commented 1 year ago

It has, someone at GitHub got in touch and helped us out here.

sambacha commented 1 year ago

@lpil has the switch happened? Asking because I'm interested in doing the same for Nix (assuming GitHub doesn't already use the tree-sitter-based grammar).

FYI @asymmetric tree-sitter grammar is used for nix as well!