nvim-treesitter/queries/properties/highlights.scm

29 lines
477 B
Scheme
Raw Normal View History

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