diff options
Diffstat (limited to 'runtime/queries/julia/injections.scm')
-rw-r--r-- | runtime/queries/julia/injections.scm | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/runtime/queries/julia/injections.scm b/runtime/queries/julia/injections.scm index 3eab231f..caed916f 100644 --- a/runtime/queries/julia/injections.scm +++ b/runtime/queries/julia/injections.scm @@ -1,8 +1,16 @@ -; ((string_literal) @injection.content -; (#set! injection.language "markdown")) +( + (string_literal) @injection.content + (#set! injection.language "markdown")) -; ((line_comment) @injection.content -; (#set! injection.language "comment")) +( + [ + (line_comment) + (block_comment) + ] @injection.content + (#set! injection.language "comment")) -; ((block_comment) @injection.content -; (#set! injection.language "comment")) +( + (prefixed_string_literal + prefix: (identifier) @function.macro) @injection.content + (#eq? @function.macro "re") + (#set! injection.language "regex")) |