mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
23 lines
357 B
Scheme
23 lines
357 B
Scheme
|
|
; Scopes
|
||
|
|
;-------
|
||
|
|
|
||
|
|
(class_declaration) @scope
|
||
|
|
(property_declaration) @scope
|
||
|
|
(method_declaration) @scope
|
||
|
|
(function_definition) @scope
|
||
|
|
(while_statement) @scope
|
||
|
|
(foreach_statement) @scope
|
||
|
|
(if_statement) @scope
|
||
|
|
(try_statement) @scope
|
||
|
|
|
||
|
|
; Definitions
|
||
|
|
;------------
|
||
|
|
|
||
|
|
(variable_name
|
||
|
|
(name) @definition.var)
|
||
|
|
|
||
|
|
; References
|
||
|
|
;------------
|
||
|
|
|
||
|
|
(variable_name) @reference
|