From 0d5c611e3fd36353b11b412661ff4f07bcc8e5c6 Mon Sep 17 00:00:00 2001 From: Ibrahim Delice <59118341+Delice0@users.noreply.github.com> Date: Sat, 14 Oct 2023 00:12:18 +0200 Subject: feat(java): highlight `var` as `@type.builtin` --- queries/java/highlights.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'queries/java') 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]")) -- cgit v1.2.3-70-g09d2