|
Is it possible or will require a lot of effort? Thanks |
Answered by
latent-9
Aug 10, 2026
Replies: 2 comments 1 reply
|
No, Helix highlights exclusively through Tree-sitter. There is no regex or TextMate grammar engine in it, and it is not a config toggle you can flip. If a language has no Tree-sitter grammar, you have two realistic options:
Porting a VSCode/TextMate regex grammar over is not supported, so there is no low-effort regex path. The upside is that once a tree-sitter grammar exists, the highlighting is far more accurate than regex could be. |
1 reply
Answer selected by
Nikita0x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, Helix highlights exclusively through Tree-sitter. There is no regex or TextMate grammar engine in it, and it is not a config toggle you can flip.
If a language has no Tree-sitter grammar, you have two realistic options:
[[grammar]]entry plus a[[language]]block inlanguages.toml, runhx --grammar fetchandhx --grammar build, and drop aruntime/queries/<lang>/highlights.scmso it knows what to color.Porting a VSCode/TextMate regex grammar over is not supported, so there is no low-effort regex path. The upside is that once a tree-sitter grammar exists, the highlighting is far more accurate than re…