diff options
author | Novus Nota | 2024-02-04 01:09:11 +0000 |
---|---|---|
committer | GitHub | 2024-02-04 01:09:11 +0000 |
commit | d1054de3ced44903c7bdcf5886d8481eb40a948f (patch) | |
tree | c02d4845b68072a94f1daff489043f9d3f7394f8 /runtime/queries/tact/locals.scm | |
parent | 3f380722fbb2fd676ccc0a9dbbea4ddc4871c6ea (diff) |
feat: Add `Tact` language support (#9512)
Re-submitting
Diffstat (limited to 'runtime/queries/tact/locals.scm')
-rw-r--r-- | runtime/queries/tact/locals.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/runtime/queries/tact/locals.scm b/runtime/queries/tact/locals.scm new file mode 100644 index 00000000..f1b3e8de --- /dev/null +++ b/runtime/queries/tact/locals.scm @@ -0,0 +1,35 @@ +; See: https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables + +; Scopes @local.scope +; ------------------------- + +[ + (static_function) + (init_function) + (bounced_function) + (receive_function) + (external_function) + (function) + (block_statement) +] @local.scope + +; Definitions @local.definition +; ------------------------------ + +(let_statement + name: (identifier) @local.definition) + +(parameter + name: (identifier) @local.definition) + +(constant + name: (identifier) @local.definition) + +; References @local.reference +; ----------------------------- + +(self) @local.reference + +(value_expression (identifier) @local.reference) + +(lvalue (identifier) @local.reference) |