diff --git a/queries/injections.scm b/queries/injections.scm index 30749c0..0138d24 100644 --- a/queries/injections.scm +++ b/queries/injections.scm @@ -2,10 +2,18 @@ ((sigil (sigil_name) @_sigil_name (quoted_content) @injection.content) - (#any-of? @_sigil_name "H" "LVN") + (#any-of? @_sigil_name "H" "LVN" "HOLO") (#set! injection.language "heex") (#set! injection.combined)) +; Regex +((sigil + (sigil_name) @_sigil_name + (quoted_content) @injection.content) + (#any-of? @_sigil_name "r" "R") + (#set! injection.language "regex") + (#set! injection.combined)) + ; SQL injection ((sigil (sigil_name) @_sigil_name @@ -13,3 +21,35 @@ (#eq? @_sigil_name "SQL") (#set! injection.language "sql") (#set! injection.combined)) + +; Markdown +((sigil + (sigil_name) @_sigil_name + (quoted_content) @injection.content) + (#eq? @_sigil_name "MD") + (#set! injection.language "markdown") + (#set! injection.combined)) + +; Python +((sigil + (sigil_name) @_sigil_name + (quoted_content) @injection.content) + (#eq? @_sigil_name "PY") + (#set! injection.language "python") + (#set! injection.combined)) + +; JavaScript +((sigil + (sigil_name) @_sigil_name + (quoted_content) @injection.content) + (#eq? @_sigil_name "JS") + (#set! injection.language "javascript") + (#set! injection.combined)) + +; Vue +((sigil + (sigil_name) @_sigil_name + (quoted_content) @injection.content) + (#eq? @_sigil_name "VUE") + (#set! injection.language "vue") + (#set! injection.combined))