diff options
Diffstat (limited to 'runtime/queries/query/highlights.scm')
-rw-r--r-- | runtime/queries/query/highlights.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/runtime/queries/query/highlights.scm b/runtime/queries/query/highlights.scm new file mode 100644 index 0000000000..f2d2ef6c7f --- /dev/null +++ b/runtime/queries/query/highlights.scm @@ -0,0 +1,34 @@ +(string) @string +(escape_sequence) @string.escape +(capture (identifier) @type) +(anonymous_node (identifier) @string) +(predicate name: (identifier) @function) +(named_node name: (identifier) @variable) +(field_definition name: (identifier) @property) +(negated_field "!" @operator (identifier) @property) +(comment) @comment @spell + +(quantifier) @operator +(predicate_type) @punctuation.special + +"." @operator + +[ + "[" + "]" + "(" + ")" +] @punctuation.bracket + +":" @punctuation.delimiter +["@" "#"] @punctuation.special +"_" @constant + +((parameters (identifier) @number) + (#match? @number "^[-+]?[0-9]+(.[0-9]+)?$")) + +((program . (comment)* . (comment) @include) + (#lua-match? @include "^;+ *inherits *:")) + +((program . (comment)* . (comment) @preproc) + (#lua-match? @preproc "^;+ *extends")) |