From 6e634c680add01b37112c567ae78783dda710c83 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Fri, 9 Sep 2016 15:36:45 +0200 Subject: [PATCH] fixes 'end' insertion --- rc/base/ruby.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } } }