From 4addec13616481f99e0400586f0b60b4314ef5a2 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Wed, 16 Dec 2020 09:59:59 +0000 Subject: first draft of YAML highlighting --- queries/yaml/highlights.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 queries/yaml/highlights.scm diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm new file mode 100644 index 00000000..e5ca1a43 --- /dev/null +++ b/queries/yaml/highlights.scm @@ -0,0 +1,31 @@ +(block_mapping_pair key: (flow_node) @field) +(flow_pair key: (flow_node) @field) ; This one doesn't seem to work, no idea what's wrong with it. +(boolean_scalar) @boolean +(null_scalar) @constant.builtin +(double_quote_scalar) @string +(single_quote_scalar) @string +(double_quote_scalar (escape_sequence)) @string.escape +(single_quote_scalar (escape_sequence)) @string.escape +(integer_scalar) @number +(float_scalar) @number +(comment) @comment +(anchor) @type +(alias) @type +(tag) @type +(yaml_directive) @keyword +(ERROR) @error +[ +; "+" ; including this causes "invalid node type" errors?!? +"," +"-" +":" +">" +"?" +"|" +] @punctuation.delimiter +[ +"[" +"]" +"{" +"}" +] @punctuation.bracket -- cgit v1.2.3