| 1 | ( |
| 2 | (source_file |
| 3 | (string_literal) @injection.content |
| 4 | . |
| 5 | [ |
| 6 | (module_definition) |
| 7 | (function_definition) |
| 8 | (macro_definition) |
| 9 | (primitive_definition) |
| 10 | (abstract_definition) |
| 11 | (struct_definition) |
| 12 | (assignment) |
| 13 | (const_statement) |
| 14 | ]) |
| 15 | (#set! injection.language "markdown")) |
| 16 | |
| 17 | ( |
| 18 | [ |
| 19 | (line_comment) |
| 20 | (block_comment) |
| 21 | ] @injection.content |
| 22 | (#set! injection.language "comment")) |
| 23 | |
| 24 | ( |
| 25 | [ |
| 26 | (command_literal) |
| 27 | (prefixed_command_literal) |
| 28 | ] @injection.content |
| 29 | (#set! injection.language "bash")) |
| 30 | |
| 31 | ( |
| 32 | (prefixed_string_literal |
| 33 | prefix: (identifier) @function.macro) @injection.content |
| 34 | (#eq? @function.macro "r") |
| 35 | (#set! injection.language "regex")) |
| 36 | |
| 37 | ( |
| 38 | (prefixed_string_literal |
| 39 | prefix: (identifier) @function.macro) @injection.content |
| 40 | (#eq? @function.macro "md") |
| 41 | (#set! injection.language "markdown")) |