| 1 |
((comment) @injection.content |
| 2 |
(#set! injection.language "comment")) |
| 3 |
|
| 4 |
((heredoc_body |
| 5 |
(heredoc_content) @injection.content |
| 6 |
(heredoc_end) @name |
| 7 |
(#set! injection.language "sql")) |
| 8 |
(#eq? @name "SQL")) |
| 9 |
|
| 10 |
((heredoc_body |
| 11 |
(heredoc_content) @injection.content |
| 12 |
(heredoc_end) @name |
| 13 |
(#set! injection.language "graphql")) |
| 14 |
(#any-of? @name |
| 15 |
"GQL" |
| 16 |
"GRAPHQL")) |
| 17 |
|
| 18 |
((heredoc_body |
| 19 |
(heredoc_content) @injection.content |
| 20 |
(heredoc_end) @name |
| 21 |
(#set! injection.language "erb")) |
| 22 |
(#eq? @name "ERB")) |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
(subshell |
| 27 |
(string_content) @injection.content |
| 28 |
(#set! injection.language "bash")) |
| 29 |
|
| 30 |
(call |
| 31 |
method: (identifier) @_method (#any-of? @_method "system" "spawn" "exec") |
| 32 |
arguments: (argument_list |
| 33 |
(string |
| 34 |
(string_content) @injection.content)) |
| 35 |
(#set! injection.language "bash")) |