1
Files
flake-nixinator/config/neovim/store/nvim-treesitter/queries/properties/highlights.scm

51 lines
633 B
Scheme

(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
(#lua-match? @number "^%d+$"))
((substitution
(key) @constant)
(#lua-match? @constant "^[A-Z_][A-Z0-9_]*$"))
(substitution
(key) @function
"::" @punctuation.special
(secret) @constant.macro)
(property
[
"="
":"
] @operator)
[
"${"
"}"
] @punctuation.special
(substitution
":" @punctuation.special)
[
"["
"]"
] @punctuation.bracket
[
"."
"\\"
] @punctuation.delimiter