mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
Mark instanceof pattern variables as @local.definition.var
This commit is contained in:
parent
3b308861a8
commit
73ca5acd28
1 changed files with 4 additions and 0 deletions
|
|
@ -74,6 +74,10 @@
|
|||
; for (var item : items) {
|
||||
name: (identifier) @local.definition.var)
|
||||
|
||||
(instanceof_expression
|
||||
; sup instanceof Sub sub
|
||||
name: (identifier) @local.definition.var)
|
||||
|
||||
(formal_parameter
|
||||
name: (identifier) @local.definition.parameter)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue