mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
refactor: Update swift-tags.scm to use more specific @name.definition tags
This commit is contained in:
parent
41e93a4d94
commit
0ac4c0b97d
1 changed files with 12 additions and 12 deletions
|
@ -1,20 +1,20 @@
|
||||||
(class_declaration
|
(class_declaration
|
||||||
name: (type_identifier) @name) @definition.class
|
name: (type_identifier) @name.definition.class) @definition.class
|
||||||
|
|
||||||
(protocol_declaration
|
(protocol_declaration
|
||||||
name: (type_identifier) @name) @definition.interface
|
name: (type_identifier) @name.definition.interface) @definition.interface
|
||||||
|
|
||||||
(class_declaration
|
(class_declaration
|
||||||
(class_body
|
(class_body
|
||||||
[
|
[
|
||||||
(function_declaration
|
(function_declaration
|
||||||
name: (simple_identifier) @name
|
name: (simple_identifier) @name.definition.method
|
||||||
)
|
)
|
||||||
(subscript_declaration
|
(subscript_declaration
|
||||||
(parameter (simple_identifier) @name)
|
(parameter (simple_identifier) @name.definition.method)
|
||||||
)
|
)
|
||||||
(init_declaration "init" @name)
|
(init_declaration "init" @name.definition.method)
|
||||||
(deinit_declaration "deinit" @name)
|
(deinit_declaration "deinit" @name.definition.method)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
) @definition.method
|
) @definition.method
|
||||||
|
@ -23,12 +23,12 @@
|
||||||
(protocol_body
|
(protocol_body
|
||||||
[
|
[
|
||||||
(protocol_function_declaration
|
(protocol_function_declaration
|
||||||
name: (simple_identifier) @name
|
name: (simple_identifier) @name.definition.method
|
||||||
)
|
)
|
||||||
(subscript_declaration
|
(subscript_declaration
|
||||||
(parameter (simple_identifier) @name)
|
(parameter (simple_identifier) @name.definition.method)
|
||||||
)
|
)
|
||||||
(init_declaration "init" @name)
|
(init_declaration "init" @name.definition.method)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
) @definition.method
|
) @definition.method
|
||||||
|
@ -37,15 +37,15 @@
|
||||||
(class_body
|
(class_body
|
||||||
[
|
[
|
||||||
(property_declaration
|
(property_declaration
|
||||||
(pattern (simple_identifier) @name)
|
(pattern (simple_identifier) @name.definition.property)
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
) @definition.property
|
) @definition.property
|
||||||
|
|
||||||
(property_declaration
|
(property_declaration
|
||||||
(pattern (simple_identifier) @name)
|
(pattern (simple_identifier) @name.definition.property)
|
||||||
) @definition.property
|
) @definition.property
|
||||||
|
|
||||||
(function_declaration
|
(function_declaration
|
||||||
name: (simple_identifier) @name) @definition.function
|
name: (simple_identifier) @name.definition.function) @definition.function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue