From c793712318bc1223d621bab68084863ae1ea2a60 Mon Sep 17 00:00:00 2001 From: John Isom Date: Fri, 31 Jul 2020 19:24:19 -0600 Subject: [PATCH] Fix ruby-indent-on-char --- rc/filetype/ruby.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/filetype/ruby.kak b/rc/filetype/ruby.kak index 2be1291a..df3c496a 100644 --- a/rc/filetype/ruby.kak +++ b/rc/filetype/ruby.kak @@ -139,10 +139,10 @@ define-command -hidden ruby-trim-indent %{ define-command -hidden ruby-indent-on-char %{ evaluate-commands -no-hooks -draft -itersel %{ # align middle and end structures to start - try %{ execute-keys -draft ^ \h * (else|elsif) $ ^ \h * (if) s \A | \z ) } - try %{ execute-keys -draft ^ \h * (when) $ ^ \h * (case) s \A | \z ) } - try %{ execute-keys -draft ^ \h * (rescue) $ ^ \h * (begin) s \A | \z ) } - try %{ execute-keys -draft ^ \h * (end) $ ^ \h * (begin|case|class|def|for|if|module|unless|until|while) s \A | \z ) } + try %{ execute-keys -draft ^ \h * (else|elsif) $ ^ \h * (if) ) } + try %{ execute-keys -draft ^ \h * (when) $ ^ \h * (case) ) } + try %{ execute-keys -draft ^ \h * (rescue) $ ^ \h * (begin) ) } + try %{ execute-keys -draft ^ \h * (end) $ ^ \h * (begin|case|class|def|for|if|module|unless|until|while) ) } } }