Inject language broken #14685
-
SummaryHello, On master branch, injecting language with this documentation https://docs.helix-editor.com/guides/injection.html doesn't work on some language. However it works fine on latest release Reproduction StepsBuild helix on master, write Open a go file, write a string with an sql query : no sql highlighting Helix logNothing relevant ~/.cache/helix/helix.logPlatformmacos Terminal Emulatorghostty 1.2.2 and 1.2.1 Installation MethodFlake Helix Versionhelix 25.07.1 (28f4110) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Rather than capturing ((raw_string_literal_content) @injection.content (#set! injection.language "sql"))
|
Beta Was this translation helpful? Give feedback.

Rather than capturing
raw_string_literalnodes you need the inner contents, so:((raw_string_literal_content) @injection.content (#set! injection.language "sql"))