Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/swift/locals.scm')
| -rw-r--r-- | runtime/queries/swift/locals.scm | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/runtime/queries/swift/locals.scm b/runtime/queries/swift/locals.scm index 597748c1..59cd4c00 100644 --- a/runtime/queries/swift/locals.scm +++ b/runtime/queries/swift/locals.scm @@ -1,19 +1,7 @@ -; Upstream: https://github.com/alex-pinkus/tree-sitter-swift/blob/57c1c6d6ffa1c44b330182d41717e6fe37430704/queries/locals.scm -(import_declaration (identifier) @local.definition.namespace) -(function_declaration name: (simple_identifier) @local.definition.function) - -; Scopes [ - (for_statement) - (while_statement) - (repeat_while_statement) - (do_statement) - (if_statement) - (guard_statement) - (switch_statement) - (property_declaration) (function_declaration) - (class_declaration) - (protocol_declaration) - (lambda_literal) ] @local.scope + +(parameter name: (simple_identifier) @local.definition) + +(simple_identifier) @local.reference |