diff --git a/rc/filetype/ruby.kak b/rc/filetype/ruby.kak index 272dcf09..dd45d85a 100644 --- a/rc/filetype/ruby.kak +++ b/rc/filetype/ruby.kak @@ -140,7 +140,7 @@ 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) $ i ^ \h * (if) 1 } - try %{ execute-keys -draft ^ \h * (when) $ i ^ \h * (case) 1 } + try %{ execute-keys -draft ^ \h * (else|when) $ i ^ \h * (case) 1 } try %{ execute-keys -draft ^ \h * (rescue) $ i ^ \h * (begin|def) 1 } try %{ execute-keys -draft ^ \h * (end) $ i ^ \h * (begin|case|class|def|for|if|module|unless|until|while) 1 } }