summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queries/yaml/highlights.scm31
1 files changed, 31 insertions, 0 deletions
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