helix-mirror/runtime/queries/javascript/locals.scm

24 lines
324 B
Scheme
Raw Normal View History

2021-04-09 12:42:49 +04:00
; 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