diff options
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 |