summaryrefslogtreecommitdiff
path: root/queries/lua/highlights.scm
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/lua/highlights.scm
parent89fbb9b39e9ff4049c797397721d44facbd246df (diff)
Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
Diffstat (limited to 'queries/lua/highlights.scm')
-rw-r--r--queries/lua/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index 842ed64d..2c7291b9 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -116,7 +116,7 @@
(nil) @constant.builtin
(spread) @constant ;; "..."
((identifier) @constant
- (#match? @constant "^[A-Z][A-Z_0-9]*$"))
+ (#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
;; Functions
(function [(function_name) (identifier)] @function)