aboutsummaryrefslogtreecommitdiffstats
path: root/queries/java
diff options
context:
space:
mode:
Diffstat (limited to 'queries/java')
-rw-r--r--queries/java/highlights.scm6
1 files changed, 3 insertions, 3 deletions
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