on master help sign in
Improve yaml syntax highlighting highlighting (#1294)
commitd52eda5d1bf6c8912a62bfcd68a3fcb84efe3dd4 authorGokul Soumya <gokulps15@gmail.com> dateSun 19 Dec 2021, 06:50 (5 years ago) parent6d183b2
1 file changed+13−3
runtime/queries/yaml/highlights.scm+13−3
runtime/queries/yaml/highlights.scm+13−3
@@ -1,9 +1,19 @@
1−(block_mapping_pair key: (_) @variable.other.member)
2−(flow_mapping (_ key: (_) @variable.other.member))
1+(block_mapping_pair
2+ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member))
3+(block_mapping_pair
4+ key: (flow_node (plain_scalar (string_scalar) @variable.other.member)))
5+
6+(flow_mapping
7+ (_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member)))
8+(flow_mapping
9+ (_ key: (flow_node (plain_scalar (string_scalar) @variable.other.member))))
10+
311(boolean_scalar) @constant.builtin.boolean
412(null_scalar) @constant.builtin
513(double_quote_scalar) @string
614(single_quote_scalar) @string
15+(block_scalar) @string
16+(string_scalar) @string
717(escape_sequence) @constant.character.escape
818(integer_scalar) @constant.numeric.integer
919(float_scalar) @constant.numeric.float
@@ -30,4 +40,4 @@
3040"}"
3141] @punctuation.bracket
3242
33−["*" "&"] @punctuation.special
43+["*" "&" "---" "..."] @punctuation.special