| 1 | ; inherits: rust |
| 2 | |
| 3 | ; HACK: This language is the same as Rust but all strings are injected |
| 4 | ; with rust-format-args. Rust injects this into known macros which use |
| 5 | ; the format args syntax. This can cause false-positive highlights but |
| 6 | ; those are expected to be rare. |
| 7 | |
| 8 | ([ |
| 9 | (string_literal (string_content) @injection.content) |
| 10 | (raw_string_literal (string_content) @injection.content) |
| 11 | ] |
| 12 | (#set! injection.language "rust-format-args") |
| 13 | (#set! injection.include-children)) |