From 011ac894ec5b9e36563d8629fb7734f43ddb27a8 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Thu, 18 Nov 2021 09:51:03 +0000 Subject: Prefer lua-match over match as string.find is much quicker than vim.regex:match* --- queries/java/highlights.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'queries/java') diff --git a/queries/java/highlights.scm b/queries/java/highlights.scm index 6a2cf2f40..fc6f4bf07 100644 --- a/queries/java/highlights.scm +++ b/queries/java/highlights.scm @@ -95,10 +95,10 @@ ((field_access object: (identifier) @type) - (#match? @type "^[A-Z]")) + (#lua-match? @type "^[A-Z]")) ((scoped_identifier scope: (identifier) @type) - (#match? @type "^[A-Z]")) + (#lua-match? @type "^[A-Z]")) ; Fields @@ -118,7 +118,7 @@ ; Variables ((identifier) @constant - (#match? @constant "^[A-Z_][A-Z\d_]+$")) + (#lua-match? @constant "^[A-Z_][A-Z%d_]+$")) (this) @variable.builtin -- cgit v1.2.3-70-g09d2