From 21c083f47c84e56ba38227807d2f1aaef02b24fb Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 10:31:38 -0600 Subject: [PATCH] Add rule to align 'when' to 'case' --- rc/filetype/crystal.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index 8ce70714..96183054 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -204,6 +204,8 @@ define-command -hidden crystal-indent-on-char %{ evaluate-commands -no-hooks -draft -itersel %{ # align 'else/elsif' to 'if' try %{ execute-keys -draft ^\h*(?:else|elsif)$ ^\h*(?:if) 1 } + # align 'when' to 'case' + try %{ execute-keys -draft ^\h*(?:when)$ ^\h*(?:case) 1 } } }