|
2 | 2 | ((sigil
|
3 | 3 | (sigil_name) @_sigil_name
|
4 | 4 | (quoted_content) @injection.content)
|
5 |
| - (#any-of? @_sigil_name "H" "LVN") |
| 5 | + (#any-of? @_sigil_name "H" "LVN" "HOLO") |
6 | 6 | (#set! injection.language "heex")
|
7 | 7 | (#set! injection.combined))
|
8 | 8 |
|
| 9 | +; Regex |
| 10 | +((sigil |
| 11 | + (sigil_name) @_sigil_name |
| 12 | + (quoted_content) @injection.content) |
| 13 | + (#any-of? @_sigil_name "r" "R") |
| 14 | + (#set! injection.language "regex") |
| 15 | + (#set! injection.combined)) |
| 16 | + |
9 | 17 | ; SQL injection
|
10 | 18 | ((sigil
|
11 | 19 | (sigil_name) @_sigil_name
|
12 | 20 | (quoted_content) @injection.content)
|
13 | 21 | (#eq? @_sigil_name "SQL")
|
14 | 22 | (#set! injection.language "sql")
|
15 | 23 | (#set! injection.combined))
|
| 24 | + |
| 25 | +; Markdown |
| 26 | +((sigil |
| 27 | + (sigil_name) @_sigil_name |
| 28 | + (quoted_content) @injection.content) |
| 29 | + (#eq? @_sigil_name "MD") |
| 30 | + (#set! injection.language "markdown") |
| 31 | + (#set! injection.combined)) |
| 32 | + |
| 33 | +; Python |
| 34 | +((sigil |
| 35 | + (sigil_name) @_sigil_name |
| 36 | + (quoted_content) @injection.content) |
| 37 | + (#eq? @_sigil_name "PY") |
| 38 | + (#set! injection.language "python") |
| 39 | + (#set! injection.combined)) |
| 40 | + |
| 41 | +; JavaScript |
| 42 | +((sigil |
| 43 | + (sigil_name) @_sigil_name |
| 44 | + (quoted_content) @injection.content) |
| 45 | + (#eq? @_sigil_name "JS") |
| 46 | + (#set! injection.language "javascript") |
| 47 | + (#set! injection.combined)) |
| 48 | + |
| 49 | +; Vue |
| 50 | +((sigil |
| 51 | + (sigil_name) @_sigil_name |
| 52 | + (quoted_content) @injection.content) |
| 53 | + (#eq? @_sigil_name "VUE") |
| 54 | + (#set! injection.language "vue") |
| 55 | + (#set! injection.combined)) |
0 commit comments