Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add Ruby method visibility in outline view (#7954)

Ben Hamment1e44bac41822
diff --git a/crates/zed/src/languages/ruby/outline.scm b/crates/zed/src/languages/ruby/outline.scm
index 0b36dabadb7..544257ac0c3 100644
--- a/crates/zed/src/languages/ruby/outline.scm
+++ b/crates/zed/src/languages/ruby/outline.scm
@@ -2,6 +2,9 @@
"class" @context
name: (_) @name) @item
+((identifier) @context
+ (#match? @context "^(private|protected|public)$")) @item
+
(method
"def" @context
name: (_) @name) @item