helix-mods/runtime/queries/solidity/locals.scm
2022-09-05 10:50:32 +09:00

9 lines
No EOL
272 B
Scheme

(function_definition) @local.scope
(block_statement) @local.scope
(function_definition (parameter name: (identifier) @local.definition))
; still have to support tuple assignments
(assignment_expression left: (identifier) @local.definition)
(identifier) @local.reference