aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-10-22 16:49:04 +0300
committerObserverOfTime <chronobserver@disroot.org>2022-11-26 13:17:51 +0200
commit7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0 (patch)
tree01be2df77dc6fe633a04f0e9223ad9fb0122b142
parenthighlights(typescript): use more specific groups (diff)
downloadnvim-treesitter-7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0.tar
nvim-treesitter-7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0.tar.gz
nvim-treesitter-7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0.tar.bz2
nvim-treesitter-7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0.tar.lz
nvim-treesitter-7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0.tar.xz
nvim-treesitter-7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0.tar.zst
nvim-treesitter-7c86e6ffc4cd69ed4f5b14c4653c79658b109fe0.zip
highlights(gdscript): use more specific groups
-rw-r--r--queries/gdscript/highlights.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm
index d86e4c1de..7b5469f62 100644
--- a/queries/gdscript/highlights.scm
+++ b/queries/gdscript/highlights.scm
@@ -10,7 +10,7 @@
(null) @constant
(setter) @function
(getter) @function
-(static_keyword) @keyword
+(static_keyword) @type.qualifier
(tool_statement) @keyword
(breakpoint_statement) @keyword
(inferred_type) @operator
@@ -20,7 +20,8 @@
(name) @type) @keyword
(const_statement
- (name) @constant) @keyword
+ "const" @type.qualifier
+ (name) @constant)
((identifier) @variable.builtin
(#eq? @variable.builtin "self"))