From 145f2db741d805a17efcbb71e68e153bb20641ad Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 10:35:34 -0600 Subject: Add rule to align 'end' with opening statement --- rc/filetype/crystal.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index 9808cddd..30a16e93 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -208,6 +208,8 @@ define-command -hidden crystal-indent-on-char %{ try %{ execute-keys -draft ^\h*(?:when)$ ^\h*(?:case) 1 } # align 'rescue' to 'begin/def' try %{ execute-keys -draft ^\h*(?:rescue)$ ^\h*(?:begin|def) 1 } + # align 'end' to opening structure + try %{ execute-keys -draft ^\h*(?:end)$ ^\h*(?:begin|case|class|def|for|if|module|unless|until|while) 1 } } } -- cgit v1.2.3