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.

ruby: Add proper indentation for singleton methods (#12535)

Vitaly Slobodin08123a270ae7
diff --git a/extensions/ruby/languages/ruby/indents.scm b/extensions/ruby/languages/ruby/indents.scm
index ac5175fa6f0..0dab1a7c2be 100644
--- a/extensions/ruby/languages/ruby/indents.scm
+++ b/extensions/ruby/languages/ruby/indents.scm
@@ -2,6 +2,7 @@
(class "end" @end) @indent
(module "end" @end) @indent
(begin "end" @end) @indent
+(singleton_method "end" @end) @indent
(do_block "end" @end) @indent
(then) @indent