mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
324 B
Scheme
24 lines
324 B
Scheme
4 years ago
|
; Scopes
|
||
|
;-------
|
||
|
|
||
|
[
|
||
|
(statement_block)
|
||
|
(function)
|
||
|
(arrow_function)
|
||
|
(function_declaration)
|
||
|
(method_definition)
|
||
|
] @local.scope
|
||
|
|
||
|
; Definitions
|
||
|
;------------
|
||
|
|
||
|
(pattern/identifier)@local.definition
|
||
|
|
||
|
(variable_declarator
|
||
|
name: (identifier) @local.definition)
|
||
|
|
||
|
; References
|
||
|
;------------
|
||
|
|
||
|
(identifier) @local.reference
|