diff --git a/queries/highlights.scm b/queries/highlights.scm new file mode 100644 index 0000000..d4c6f63 --- /dev/null +++ b/queries/highlights.scm @@ -0,0 +1,44 @@ +(match key: _ @keyword) +(assignment key: _ @property) + +[ + (system_const) + (run_type) + (import_type) + (attribute) + (kernel_param) + (seclabel) +] @attribute + +(env_var) @constant + +(value) @string + +(pattern) @string.regexp + +(fmt_sub . _ @variable.builtin) + +(var_sub . _ @variable.builtin) + +[ + "\\\"" + (c_escape) +] @string.escape + +[ + (octal) + (number) +] @number + +[ + (match_op) + (assignment_op) +] @operator + +"+" @punctuation.special + +[ "{" "}" ] @punctuation.bracket + +[ "," (linebreak) ] @punctuation.delimiter + +(comment) @comment