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

24 lines
324 B
Scheme
Raw Normal View History

2021-04-09 10:42:49 +02: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