VCL language failing syntax highlighting #6715
-
i often work on a language with no lsp/treesitter out there (VCL). with vim, i just set syntax=ruby and i'm good to go. with helix's language model, i figured setting the treesitter to ruby should suffice, but no dice. i could have sworn i had it working for a moment but i can't figure out where my config is wrong. i checked the logs via
here's the configuration i set:
i've tried older revs for ruby as well to no avail ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
To re-use ruby's tree-sitter parser you should set |
Beta Was this translation helpful? Give feedback.
To re-use ruby's tree-sitter parser you should set
grammar = "ruby"
in the[[language]]
block for vcl. You will also need to set up syntax highlighting queries in$HELIX_RUNTIME/queries/vcl/highlights.scm
. If you re-use the ruby tree-sitter parser you can also re-use the syntax highlight queries by adding the comment; inherits: ruby
to that file.