From 57e9719c25a3038d34b91bff2258cac323e80813 Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 11:57:38 -0600 Subject: [PATCH] Add 'else' to auto deindent/align logic in context of 'case' statement --- rc/filetype/ruby.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }