aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/java/highlights.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/java/highlights.scm b/queries/java/highlights.scm
index a7e3af292..ae498a159 100644
--- a/queries/java/highlights.scm
+++ b/queries/java/highlights.scm
@@ -96,6 +96,8 @@
(constructor_declaration
name: (identifier) @type)
(type_identifier) @type
+((type_identifier) @type.builtin
+ (#eq? @type.builtin "var"))
((method_invocation
object: (identifier) @type)
(#lua-match? @type "^[A-Z]"))