Skip to content

Commit

Permalink
Add highlight queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Nov 3, 2023
1 parent d2387d9 commit dba4f91
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dba4f91

Please sign in to comment.