mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-26 03:13:29 +04:00
30 lines
447 B
Scheme
30 lines
447 B
Scheme
|
; Scopes
|
||
|
;-------
|
||
|
|
||
|
[
|
||
|
(statement_block)
|
||
|
(function)
|
||
|
(arrow_function)
|
||
|
(function_declaration)
|
||
|
(method_definition)
|
||
|
] @local.scope
|
||
|
|
||
|
; Definitions
|
||
|
;------------
|
||
|
|
||
|
(pattern/identifier) @local.definition
|
||
|
|
||
|
(pattern/rest_pattern
|
||
|
(identifier) @local.definition)
|
||
|
|
||
|
(arrow_function
|
||
|
parameter: (identifier) @local.definition)
|
||
|
|
||
|
(variable_declarator
|
||
|
name: (identifier) @local.definition)
|
||
|
|
||
|
; References
|
||
|
;------------
|
||
|
|
||
|
(identifier) @local.reference
|