| 1 | ; regular escapes like `\n` are detected using another grammar |
| 2 | ; Here, we only detect `{{` and `}}` as escapes for `{` and `}` |
| 3 | (escaped) @constant.character.escape |
| 4 | |
| 5 | [ |
| 6 | "#" |
| 7 | (type) |
| 8 | ] @special |
| 9 | |
| 10 | [ |
| 11 | (sign) |
| 12 | (fill) |
| 13 | (align) |
| 14 | (width) |
| 15 | ] @operator |
| 16 | |
| 17 | (number) @constant.numeric |
| 18 | |
| 19 | (colon) @punctuation |
| 20 | |
| 21 | (identifier) @variable |
| 22 | |
| 23 | ; SCREAMING_CASE is assumed to be constant |
| 24 | ((identifier) @constant |
| 25 | (#match? @constant "^[A-Z_]+$")) |
| 26 | |
| 27 | [ |
| 28 | "{" |
| 29 | "}" |
| 30 | ] @punctuation.special |