aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/swift/locals.scm
diff options
context:
space:
mode:
authorMichael Davis2022-08-17 01:40:21 +0000
committerGitHub2022-08-17 01:40:21 +0000
commit254d5589070b4b86e0352a78978761bba490c663 (patch)
tree413bdb053f57f48e174128a118008b20b39fab45 /runtime/queries/swift/locals.scm
parentd6e4fd15fc86eacbd083f29ed5d3669d3b2e7014 (diff)
Update tree-sitter-swift (#3461)
Diffstat (limited to 'runtime/queries/swift/locals.scm')
-rw-r--r--runtime/queries/swift/locals.scm21
1 files changed, 5 insertions, 16 deletions
diff --git a/runtime/queries/swift/locals.scm b/runtime/queries/swift/locals.scm
index dfe1c83b..59cd4c00 100644
--- a/runtime/queries/swift/locals.scm
+++ b/runtime/queries/swift/locals.scm
@@ -1,18 +1,7 @@
-(import_declaration (identifier) @definition.import)
-(function_declaration name: (simple_identifier) @definition.function)
-
-; Scopes
[
- (statements)
- (for_statement)
- (while_statement)
- (repeat_while_statement)
- (do_statement)
- (if_statement)
- (guard_statement)
- (switch_statement)
- (property_declaration)
(function_declaration)
- (class_declaration)
- (protocol_declaration)
-] @scope
+] @local.scope
+
+(parameter name: (simple_identifier) @local.definition)
+
+(simple_identifier) @local.reference