feat(properties): update parser & queries

This commit is contained in:
ObserverOfTime 2024-02-23 17:21:26 +02:00
parent e159a531e5
commit e105b5e67d
4 changed files with 15 additions and 9 deletions

View file

@ -13,7 +13,17 @@
((value) @number
(#lua-match? @number "^%d+$"))
(index) @number
((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
[
@ -38,7 +48,3 @@
"."
"\\"
] @punctuation.delimiter
((substitution
(key) @constant)
(#lua-match? @constant "^[A-Z_][A-Z0-9_]*$"))