diff options
author | Michael Davis | 2022-08-17 01:40:21 +0000 |
---|---|---|
committer | GitHub | 2022-08-17 01:40:21 +0000 |
commit | 254d5589070b4b86e0352a78978761bba490c663 (patch) | |
tree | 413bdb053f57f48e174128a118008b20b39fab45 /runtime/queries/swift/locals.scm | |
parent | d6e4fd15fc86eacbd083f29ed5d3669d3b2e7014 (diff) |
Update tree-sitter-swift (#3461)
Diffstat (limited to 'runtime/queries/swift/locals.scm')
-rw-r--r-- | runtime/queries/swift/locals.scm | 21 |
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 |