mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(java): highlight var as @type.builtin
This commit is contained in:
parent
b59a1fa075
commit
0d5c611e3f
1 changed files with 2 additions and 0 deletions
|
|
@ -96,6 +96,8 @@
|
||||||
(constructor_declaration
|
(constructor_declaration
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
|
((type_identifier) @type.builtin
|
||||||
|
(#eq? @type.builtin "var"))
|
||||||
((method_invocation
|
((method_invocation
|
||||||
object: (identifier) @type)
|
object: (identifier) @type)
|
||||||
(#lua-match? @type "^[A-Z]"))
|
(#lua-match? @type "^[A-Z]"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue