mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: Update ruby-tags.scm to use more specific tag names
This commit is contained in:
parent
68b5c90d95
commit
a689f2116c
1 changed files with 12 additions and 12 deletions
|
@ -5,16 +5,16 @@
|
||||||
.
|
.
|
||||||
[
|
[
|
||||||
(method
|
(method
|
||||||
name: (_) @name) @definition.method
|
name: (_) @name.definition.method) @definition.method
|
||||||
(singleton_method
|
(singleton_method
|
||||||
name: (_) @name) @definition.method
|
name: (_) @name.definition.method) @definition.method
|
||||||
]
|
]
|
||||||
(#strip! @doc "^#\\s*")
|
(#strip! @doc "^#\\s*")
|
||||||
(#select-adjacent! @doc @definition.method)
|
(#select-adjacent! @doc @definition.method)
|
||||||
)
|
)
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
name: (_) @name) @definition.method
|
name: (_) @name.definition.method) @definition.method
|
||||||
|
|
||||||
(setter
|
(setter
|
||||||
(identifier) @ignore)
|
(identifier) @ignore)
|
||||||
|
@ -27,15 +27,15 @@
|
||||||
[
|
[
|
||||||
(class
|
(class
|
||||||
name: [
|
name: [
|
||||||
(constant) @name
|
(constant) @name.definition.class
|
||||||
(scope_resolution
|
(scope_resolution
|
||||||
name: (_) @name)
|
name: (_) @name.definition.class)
|
||||||
]) @definition.class
|
]) @definition.class
|
||||||
(singleton_class
|
(singleton_class
|
||||||
value: [
|
value: [
|
||||||
(constant) @name
|
(constant) @name.definition.class
|
||||||
(scope_resolution
|
(scope_resolution
|
||||||
name: (_) @name)
|
name: (_) @name.definition.class)
|
||||||
]) @definition.class
|
]) @definition.class
|
||||||
]
|
]
|
||||||
(#strip! @doc "^#\\s*")
|
(#strip! @doc "^#\\s*")
|
||||||
|
@ -47,18 +47,18 @@
|
||||||
(
|
(
|
||||||
(module
|
(module
|
||||||
name: [
|
name: [
|
||||||
(constant) @name
|
(constant) @name.definition.module
|
||||||
(scope_resolution
|
(scope_resolution
|
||||||
name: (_) @name)
|
name: (_) @name.definition.module)
|
||||||
]) @definition.module
|
]) @definition.module
|
||||||
)
|
)
|
||||||
|
|
||||||
; Calls
|
; Calls
|
||||||
|
|
||||||
(call method: (identifier) @name) @reference.call
|
(call method: (identifier) @name.reference.call) @reference.call
|
||||||
|
|
||||||
(
|
(
|
||||||
[(identifier) (constant)] @name @reference.call
|
[(identifier) (constant)] @name.reference.call @reference.call
|
||||||
(#is-not? local)
|
(#is-not? local)
|
||||||
(#not-match? @name "^(lambda|load|require|require_relative|__FILE__|__LINE__)$")
|
(#not-match? @name.reference.call "^(lambda|load|require|require_relative|__FILE__|__LINE__)$")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue