| 1 | ((comment) @injection.content |
| 2 | (#set! injection.language "comment")) |
| 3 | |
| 4 | (command |
| 5 | name: (command_name (word) @_command) |
| 6 | argument: (raw_string) @injection.content |
| 7 | (#match? @_command "^[gnm]?awk$") |
| 8 | (#set! injection.language "awk")) |
| 9 | |
| 10 | ((regex) @injection.content |
| 11 | (#set! injection.language "regex")) |
| 12 | |
| 13 | (command |
| 14 | name: (command_name (word) @_command (#any-of? @_command "jq" "jaq")) |
| 15 | argument: [ |
| 16 | (raw_string) @injection.content |
| 17 | (string (string_content) @injection.content) |
| 18 | ] |
| 19 | (#set! injection.language "jq")) |
| 20 | |
| 21 | (command |
| 22 | name: (command_name (word) @_command (#eq? @_command "alias")) |
| 23 | argument: (concatenation |
| 24 | (word) |
| 25 | [ |
| 26 | (raw_string) @injection.content |
| 27 | (string (string_content) @injection.content) |
| 28 | ]) |
| 29 | (#set! injection.language "bash")) |
| 30 | |
| 31 | (command |
| 32 | name: (command_name (word) @_command (#any-of? @_command "eval" "trap")) |
| 33 | . |
| 34 | argument: [ |
| 35 | (raw_string) @injection.content |
| 36 | (string (string_content) @injection.content) |
| 37 | ] |
| 38 | (#set! injection.language "bash")) |