Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions languages/ruby/outline.scm
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@
(call
method: (identifier) @name
arguments: (argument_list . [
(string) @name
(simple_symbol) @name
(scope_resolution) @name
(constant) @name
(string) @context.extra
(simple_symbol) @context.extra
(scope_resolution) @context.extra
(constant) @context.extra
"," @context
Copy link
Copy Markdown
Collaborator Author

@vitallium vitallium May 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this capture should be @context.extra as well?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't use context.extra here and everywhere else because we will lose ability to search through symbols:

CleanShot.2025-05-10.at.06.57.58.mp4

]* [
(string) @name
(simple_symbol) @name
(scope_resolution) @name
(constant) @name
(string) @context.extra
(simple_symbol) @context.extra
(scope_resolution) @context.extra
(constant) @context.extra
]
)
) @item
Expand All @@ -113,16 +113,16 @@
(call
method: (identifier) @name
arguments: (argument_list . [
(string) @name
(simple_symbol) @name
(scope_resolution) @name
(constant) @name
(string) @context.extra
(simple_symbol) @context.extra
(scope_resolution) @context.extra
(constant) @context.extra
"," @context
]* [
(string) @name
(simple_symbol) @name
(scope_resolution) @name
(constant) @name
(string) @context.extra
(simple_symbol) @context.extra
(scope_resolution) @context.extra
(constant) @context.extra
]
)
) @item
Expand Down