nvim-treesitter/queries/udev/highlights.scm

68 lines
871 B
Scheme
Raw 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
2024-01-06 15:05:50 +09:00
(#set! "priority" 101))
2023-11-03 14:20:46 +02:00
((env_var) @constant
2024-01-06 15:05:50 +09:00
(#set! "priority" 101))
2023-11-03 14:20:46 +02:00
((pattern) @string.special
2024-01-06 15:05:50 +09:00
(#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
2024-01-06 15:05:50 +09:00
(#set! "priority" 101))
2023-11-03 14:20:46 +02:00
[
(match_op)
(assignment_op)
] @operator
("+" @punctuation.special
2024-01-06 15:05:50 +09:00
(#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