nvim-treesitter/runtime/queries/udev/highlights.scm

68 lines
853 B
Scheme
Raw Permalink Normal View History

2024-01-06 15:05:50 +09:00
(match
key: _ @keyword)
2023-11-03 14:20:46 +02:00
2024-01-06 15:05:50 +09:00
(assignment
key: _ @property)
2023-11-03 14:20:46 +02:00
(value) @string
; NOTE: higher priorities override bash highlights
2024-01-06 15:05:50 +09:00
((fmt_sub
.
_ @character.special)
(#set! priority 101))
2023-11-03 14:20:46 +02:00
2024-01-06 15:05:50 +09:00
((var_sub
.
_ @variable.builtin)
(#set! priority 101))
2023-11-03 14:20:46 +02:00
[
(system_const)
(run_type)
(import_type)
(kernel_param)
(seclabel)
] @attribute
((attribute) @attribute
(#set! priority 101))
2023-11-03 14:20:46 +02:00
((env_var) @constant
(#set! priority 101))
2023-11-03 14:20:46 +02:00
((pattern) @string.special
(#set! priority 101))
2023-11-03 14:20:46 +02:00
2024-01-06 15:05:50 +09:00
([
"\\\""
(c_escape)
] @string.escape
(#set! priority 101))
2023-11-03 14:20:46 +02:00
(octal) @number
((number) @number
(#set! priority 101))
2023-11-03 14:20:46 +02:00
[
(match_op)
(assignment_op)
] @operator
("+" @punctuation.special
(#set! priority 101))
2023-11-03 14:20:46 +02:00
2024-01-06 15:05:50 +09:00
([
"{"
"}"
] @punctuation.bracket
(#set! priority 101))
2023-11-03 14:20:46 +02:00
2024-01-06 15:05:50 +09:00
[
","
(linebreak)
] @punctuation.delimiter
2023-11-03 14:20:46 +02:00
(comment) @comment @spell