Add teal parser

This commit is contained in:
Corey Williamson 2020-10-04 19:39:12 -05:00 committed by Stephan Seitz
parent 93f9708a3c
commit c2acddd651
4 changed files with 111 additions and 0 deletions

20
queries/teal/locals.scm Normal file
View file

@ -0,0 +1,20 @@
(var_declaration
(var (identifier)) @definition.var)
(var_assignment
(var (identifier)) @definition.associated @definition.var)
(arg_name) @definition.parameter
(functiondef) @scope
(function_statement (function_name) @definition.function) @scope
(program) @scope
(if_statement) @scope
(for_statement (for_body) @scope)
(repeat_statement) @scope
(while_statement (while_body) @scope)
(do_statement) @scope
(identifier) @reference