diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2024-02-23 17:21:26 +0200 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2024-02-23 17:37:22 +0200 |
| commit | e105b5e67df1a9bbd9d35a9aef4d40d0119d708d (patch) | |
| tree | 99c5b26c377bcc9da0d11a19e1090ad8bbcb5cb3 /queries/properties | |
| parent | fix(fidl): remove requires_generate_from_grammar (diff) | |
| download | nvim-treesitter-e105b5e67df1a9bbd9d35a9aef4d40d0119d708d.tar nvim-treesitter-e105b5e67df1a9bbd9d35a9aef4d40d0119d708d.tar.gz nvim-treesitter-e105b5e67df1a9bbd9d35a9aef4d40d0119d708d.tar.bz2 nvim-treesitter-e105b5e67df1a9bbd9d35a9aef4d40d0119d708d.tar.lz nvim-treesitter-e105b5e67df1a9bbd9d35a9aef4d40d0119d708d.tar.xz nvim-treesitter-e105b5e67df1a9bbd9d35a9aef4d40d0119d708d.tar.zst nvim-treesitter-e105b5e67df1a9bbd9d35a9aef4d40d0119d708d.zip | |
feat(properties): update parser & queries
Diffstat (limited to 'queries/properties')
| -rw-r--r-- | queries/properties/highlights.scm | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/queries/properties/highlights.scm b/queries/properties/highlights.scm index d819e20a5..b9390be8c 100644 --- a/queries/properties/highlights.scm +++ b/queries/properties/highlights.scm @@ -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_]*$")) |
