Typst's variables aren't highlighted properly, is that a Helix's problem, Tree Sitter grammar for Typst's problem, or a misconfiguration? #10754
-
I am sorry for my ignorance, but I am a bit naive when it comes to terminal text editor configuration, so I am a bit lost here. AFAIK, the grammar tree is what provides syntax highlighting, not the LSP or the DAP. Helix now has a built-in grammar tree-sitter for Typst, and it is indeed working. However, neither variables nor code section block (i.e., Where the
Thank you beforehand! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Are you sure that it isn't being highlighted as a variable? It looks slightly brighter than the text at the beginning of the screenshot. The theme you're using might not make a big distinction for variable names (the |
Beta Was this translation helpful? Give feedback.
You can set a custom color for variables and reuse the rest of the theme by using inheritance: https://docs.helix-editor.com/master/themes.html#inheritance