diff options
Diffstat (limited to 'runtime/queries/swift/locals.scm')
-rw-r--r-- | runtime/queries/swift/locals.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/queries/swift/locals.scm b/runtime/queries/swift/locals.scm new file mode 100644 index 00000000..dfe1c83b --- /dev/null +++ b/runtime/queries/swift/locals.scm @@ -0,0 +1,18 @@ +(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 |