mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
java locals.scm - add reference
This commit is contained in:
parent
c2a529fb80
commit
491bf9f270
1 changed files with 5 additions and 11 deletions
|
|
@ -1,14 +1,3 @@
|
|||
; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com)
|
||||
|
||||
;(class_declaration
|
||||
; name: (identifier) @name) @definticlass
|
||||
;
|
||||
;(method_declaration
|
||||
; name: (identifier) @name) @method
|
||||
;
|
||||
;(method_invocation
|
||||
; name: (identifier) @name) @call
|
||||
|
||||
; SCOPES
|
||||
(class_declaration
|
||||
body: (_)) @scope
|
||||
|
|
@ -38,3 +27,8 @@
|
|||
(local_variable_declaration) @definition.var
|
||||
(field_declaration) @definition.field
|
||||
(import_declaration) @definition.import
|
||||
|
||||
;; REFERENCE
|
||||
(identifier) @reference
|
||||
(type_identifier) @reference
|
||||
;(field_identifier) @reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue