diff options
author | Sophie Dankel | 2023-02-25 18:47:54 +0000 |
---|---|---|
committer | GitHub | 2023-02-25 18:47:54 +0000 |
commit | f69bb411691ba023951168e8ee865795328294bb (patch) | |
tree | 939be9cae7b7202875797801059f734a62cda1ac /runtime/queries/sway/locals.scm | |
parent | 0cbb61c3a45f605f685897027ec0dc606ec8bef5 (diff) |
Add language support for sway (#6023)
Diffstat (limited to 'runtime/queries/sway/locals.scm')
-rw-r--r-- | runtime/queries/sway/locals.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/queries/sway/locals.scm b/runtime/queries/sway/locals.scm new file mode 100644 index 00000000..262d609e --- /dev/null +++ b/runtime/queries/sway/locals.scm @@ -0,0 +1,17 @@ +; Scopes + +[ + (function_item) + (closure_expression) + (block) +] @local.scope + +; Definitions + +(parameter + (identifier) @local.definition) + +(closure_parameters (identifier) @local.definition) + +; References +(identifier) @local.reference |