aboutsummaryrefslogtreecommitdiffstats
path: root/queries/gdscript
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2021-11-18 09:51:03 +0000
committerStephan Seitz <stephan.seitz@fau.de>2021-11-23 10:02:06 +0100
commit011ac894ec5b9e36563d8629fb7734f43ddb27a8 (patch)
treede0b252b7705bfa4304c08cd389fed0814ae6f1c /queries/gdscript
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-011ac894ec5b9e36563d8629fb7734f43ddb27a8.tar
nvim-treesitter-011ac894ec5b9e36563d8629fb7734f43ddb27a8.tar.gz
nvim-treesitter-011ac894ec5b9e36563d8629fb7734f43ddb27a8.tar.bz2
nvim-treesitter-011ac894ec5b9e36563d8629fb7734f43ddb27a8.tar.lz
nvim-treesitter-011ac894ec5b9e36563d8629fb7734f43ddb27a8.tar.xz
nvim-treesitter-011ac894ec5b9e36563d8629fb7734f43ddb27a8.tar.zst
nvim-treesitter-011ac894ec5b9e36563d8629fb7734f43ddb27a8.zip
Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
Diffstat (limited to 'queries/gdscript')
-rw-r--r--queries/gdscript/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm
index a65afdc72..d86e4c1de 100644
--- a/queries/gdscript/highlights.scm
+++ b/queries/gdscript/highlights.scm
@@ -27,11 +27,11 @@
;; Identifier naming conventions
((identifier) @type
- (#match? @type "^[A-Z]"))
+ (#lua-match? @type "^[A-Z]"))
((identifier) @constant
- (#match? @constant "^[A-Z][A-Z_0-9]*$"))
+ (#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
((identifier) @type
- (#match? @type "^[A-Z][A-Z_0-9]*$") . (_))
+ (#lua-match? @type "^[A-Z][A-Z_0-9]*$") . (_))
;; Functions
(constructor_definition) @constructor