feat(java): highlight var as @type.builtin

This commit is contained in:
Ibrahim Delice 2023-10-14 00:12:18 +02:00 committed by GitHub
parent b59a1fa075
commit 0d5c611e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]"))