diff options
| author | Shatur95 <genaloner@gmail.com> | 2021-04-18 20:17:01 +0300 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-04-18 20:40:58 +0200 |
| commit | 15f27cf3014f5f437c16f17e3da73f420f61432b (patch) | |
| tree | 1635b76913da1e17a60a4219f9e411e7f908072b /queries/gdscript | |
| parent | Fix GDScript highlighting (diff) | |
| download | nvim-treesitter-15f27cf3014f5f437c16f17e3da73f420f61432b.tar nvim-treesitter-15f27cf3014f5f437c16f17e3da73f420f61432b.tar.gz nvim-treesitter-15f27cf3014f5f437c16f17e3da73f420f61432b.tar.bz2 nvim-treesitter-15f27cf3014f5f437c16f17e3da73f420f61432b.tar.lz nvim-treesitter-15f27cf3014f5f437c16f17e3da73f420f61432b.tar.xz nvim-treesitter-15f27cf3014f5f437c16f17e3da73f420f61432b.tar.zst nvim-treesitter-15f27cf3014f5f437c16f17e3da73f420f61432b.zip | |
Fix identifier type check
Diffstat (limited to 'queries/gdscript')
| -rw-r--r-- | queries/gdscript/highlights.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm index 57009aea3..06801747b 100644 --- a/queries/gdscript/highlights.scm +++ b/queries/gdscript/highlights.scm @@ -30,7 +30,8 @@ (#match? @type "^[A-Z]")) ((identifier) @constant (#match? @constant "^[A-Z][A-Z_0-9]*$")) -((identifier) @type . ".") +((identifier) @type + (#match? @type "^[A-Z][A-Z_0-9]*$") . (_)) ((attribute (identifier) @field) |
