| 1 | (boolean_scalar) @constant.builtin.boolean |
| 2 | (null_scalar) @constant.builtin |
| 3 | (double_quote_scalar) @string |
| 4 | (single_quote_scalar) @string |
| 5 | (block_scalar) @string |
| 6 | (string_scalar) @string |
| 7 | (escape_sequence) @constant.character.escape |
| 8 | (integer_scalar) @constant.numeric.integer |
| 9 | (float_scalar) @constant.numeric.float |
| 10 | (comment) @comment |
| 11 | (anchor_name) @type |
| 12 | (alias_name) @type |
| 13 | (tag) @type |
| 14 | (yaml_directive) @keyword |
| 15 | |
| 16 | (block_mapping_pair |
| 17 | key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member)) |
| 18 | (block_mapping_pair |
| 19 | key: (flow_node (plain_scalar (string_scalar) @variable.other.member))) |
| 20 | |
| 21 | (flow_mapping |
| 22 | (_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member))) |
| 23 | (flow_mapping |
| 24 | (_ key: (flow_node (plain_scalar (string_scalar) @variable.other.member)))) |
| 25 | |
| 26 | [ |
| 27 | "," |
| 28 | "-" |
| 29 | ":" |
| 30 | ">" |
| 31 | "?" |
| 32 | "|" |
| 33 | ] @punctuation.delimiter |
| 34 | |
| 35 | [ |
| 36 | "[" |
| 37 | "]" |
| 38 | "{" |
| 39 | "}" |
| 40 | ] @punctuation.bracket |
| 41 | |
| 42 | ["*" "&" "---" "..."] @punctuation.special |