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

51 lines
633 B
Scheme
Raw Normal View History

2023-11-21 02:19:07 +02:00
(comment) @comment @spell
(key) @property
(value) @string
2024-01-06 15:05:50 +09:00
(value
(escape) @string.escape)
2023-11-21 02:19:07 +02:00
((value) @boolean
2024-01-06 15:05:50 +09:00
(#any-of? @boolean "true" "false"))
2023-11-21 02:19:07 +02:00
((value) @number
2024-01-06 15:05:50 +09:00
(#lua-match? @number "^%d+$"))
2023-11-21 02:19:07 +02:00
((index) @number
(#lua-match? @number "^%d+$"))
((substitution
(key) @constant)
(#lua-match? @constant "^[A-Z_][A-Z0-9_]*$"))
(substitution
(key) @function
"::" @punctuation.special
(secret) @constant.macro)
2023-11-21 02:19:07 +02:00
2024-01-06 15:05:50 +09:00
(property
[
"="
":"
] @operator)
[
"${"
"}"
] @punctuation.special
(substitution
":" @punctuation.special)
[
"["
"]"
] @punctuation.bracket
[
"."
"\\"
] @punctuation.delimiter