Odin syntax highlighting #9879
Unanswered
BoosterUP1256
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been experimenting with the Odin programming language lately and I noticed that the syntax highlighting for the Odin language is not as comprehensive as some other editors. (For example I have the same file open with neovim on the left and helix on the right)

From what I understand this is due to the fact that neovim and helix are using different tree-sitter queries for its syntax highlighting.
Helix is using the grammar at: []https://github.com/ap29600/tree-sitter-odin
Neovim-lsp is using the grammar at:[]https://github.com/tree-sitter-grammars/tree-sitter-odin
I pointed the Odin [grammar] to the later repository in my runtime languages.toml file in helix, I also put local copies of the .scm files from the neovim grammar in my helix runtime folder under queries/Odin, unfortunately this only made the syntax highlighting worse with only a few keywords being highlighted. Is there something specific about how the queries for helix are written. I would love to contribute to help improve the syntax highlighting for Odin in helix but I do not know a lot about rust or tree-sitter configs. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions