mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
name: (identifier) @type)
|
||||
(type_identifier) @type
|
||||
((type_identifier) @type.builtin
|
||||
(#eq? @type.builtin "var"))
|
||||
((method_invocation
|
||||
object: (identifier) @type)
|
||||
(#lua-match? @type "^[A-Z]"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue