Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/styx/injections.scm')
| -rw-r--r-- | runtime/queries/styx/injections.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/styx/injections.scm b/runtime/queries/styx/injections.scm new file mode 100644 index 00000000..4e79fd18 --- /dev/null +++ b/runtime/queries/styx/injections.scm @@ -0,0 +1,9 @@ +([(line_comment) (doc_comment)] @injection.content + (#set! injection.language "comment")) + +; Heredocs can specify a language: <<SQL,sql +; The heredoc_lang node captures the language name (e.g., "sql") +; The heredoc_content node contains the actual content to highlight +(heredoc + (heredoc_lang) @injection.language + (heredoc_content) @injection.content) |