diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index 7abc7e83..30daf3ba 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -142,7 +142,7 @@ def -hidden _ruby_insert_on_new_line %{ # wisely add end structure eval -save-regs x %{ try %{ exec -draft k x s ^ \h + \" x y } catch %{ reg x '' } - try %{ exec -draft k x ^ x (begin|case|class|def|do|for|if|module|unless|until|while) j i X K ^ x (for|function|if|while) . * \n x end $ j x y p j a end } + try %{ exec -draft k x ^ x (begin|case|class|def|do|for|if|module|unless|until|while) j i X K ^ x (begin|case|class|def|do|for|if|module|unless|until|while) . * \n x end $ j x y p j a end } } } }