mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
Add files via upload
This commit is contained in:
parent
a2f0931254
commit
6bdbca9d33
1 changed files with 19 additions and 6 deletions
|
|
@ -1,10 +1,23 @@
|
||||||
; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com)
|
; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com)
|
||||||
|
|
||||||
|
;(class_declaration
|
||||||
|
; name: (identifier) @name) @class
|
||||||
|
;
|
||||||
|
;(method_declaration
|
||||||
|
; name: (identifier) @name) @method
|
||||||
|
;
|
||||||
|
;(method_invocation
|
||||||
|
; name: (identifier) @name) @call
|
||||||
|
|
||||||
|
(class_declaration) @scope
|
||||||
|
(method_declaration) @scope
|
||||||
|
(if_statement) @scope
|
||||||
|
(for_statement) @scope
|
||||||
|
(try_statement
|
||||||
|
body: (_) @scope)
|
||||||
|
(catch_clause) @scope
|
||||||
|
|
||||||
(class_declaration
|
(class_declaration
|
||||||
name: (identifier) @name) @class
|
name: (identifier) @definition.type)
|
||||||
|
|
||||||
(method_declaration
|
(method_declaration
|
||||||
name: (identifier) @name) @method
|
name: (identifier) @definition.method)
|
||||||
|
|
||||||
(method_invocation
|
|
||||||
name: (identifier) @name) @call
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue