helix-mirror/runtime/queries/teal/locals.scm
barsoosayque cd972ae77d
Add support for Teal language (#12081)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-04 14:59:11 -06:00

26 lines
616 B
Scheme

(var_declaration
declarators: (var_declarators
(var (identifier)) @local.definition))
(var_assignment
variables: (assignment_variables
(var (identifier) @local.definition)))
(arg name: (identifier) @local.definition)
(anon_function) @local.scope
((function_statement
(function_name) @local.definition) @local.scope)
(program) @local.scope
(if_statement) @local.scope
(generic_for_statement (for_body) @local.scope)
(numeric_for_statement (for_body) @local.scope)
(repeat_statement) @local.scope
(while_statement (while_body) @local.scope)
(do_statement) @local.scope
(identifier) @local.reference