Helix won't highlight custom language defined with other language's grammar #11261
-
SummaryI'm trying to get Helix to recognize *.gren files as *.elm files (the two languages have similar enough syntax for this to be useful), however I'm unable to get syntax highlighting for gren code without manually running This is the
When running Reproduction StepsI tried this:
I expected this to happen: Code highlightes as if it was Elm code Instead, this happened: No syntax highlighting at all Helix log~/.cache/helix/helix.log
PlatformmacOS Terminal Emulatoriterm2 Installation Methodhomebrew Helix Versionhelix 24.7 (079f544) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You also need to set up queries for the language. You can point at the elm queries by creating a |
Beta Was this translation helpful? Give feedback.
You also need to set up queries for the language. You can point at the elm queries by creating a
runtime/queries/gren/highlights.scm
file that just says; inherits: elm
. Starlark is a good example of this