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 outline support for Ruby singleton methods

Kevin Hovsäter57ff173e297b
diff --git a/crates/zed/src/languages/ruby/outline.scm b/crates/zed/src/languages/ruby/outline.scm
index e549a2d1948..0b36dabadb7 100644
--- a/crates/zed/src/languages/ruby/outline.scm
+++ b/crates/zed/src/languages/ruby/outline.scm
@@ -6,6 +6,12 @@
"def" @context
name: (_) @name) @item
+(singleton_method
+ "def" @context
+ object: (_) @context
+ "." @context
+ name: (_) @name) @item
+
(module
"module" @context
- name: (_) @name) @item
\ No newline at end of file
+ name: (_) @name) @item