summaryrefslogtreecommitdiff
path: root/runtime/queries/solidity/locals.scm
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-09-05 01:50:32 +0000
committerBlaž Hrastnik2022-09-05 01:50:32 +0000
commit20ed8c259519f1e37cf6c2a37479bdd681e9b924 (patch)
tree3234271a76dab7742b14e853b480b22dd332bb1d /runtime/queries/solidity/locals.scm
parent44b447947c810b7fc6a13383b4379f0f48501c17 (diff)
tree-sitter-solidity: Use upstream, update queries
Diffstat (limited to 'runtime/queries/solidity/locals.scm')
-rw-r--r--runtime/queries/solidity/locals.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/solidity/locals.scm b/runtime/queries/solidity/locals.scm
new file mode 100644
index 00000000..29bdc02c
--- /dev/null
+++ b/runtime/queries/solidity/locals.scm
@@ -0,0 +1,9 @@
+(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 \ No newline at end of file