From 8f0843978e883c92d11a0679e17dde3e7d28fd65 Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 11:19:36 -0600 Subject: [PATCH] Beautify indentation of 'crystal-indent-on-char' --- rc/filetype/crystal.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index c6397a41..725a2b3d 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -203,13 +203,13 @@ define-command -hidden crystal-insert-on-new-line %{ 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)$ i ^\h*(?:if) 1 } + try %{ execute-keys -draft ^\h*(?:else|elsif)$ i ^\h*(?:if) 1 } # align 'when' to 'case' - try %{ execute-keys -draft ^\h*(?:when)$ i ^\h*(?:case) 1 } + try %{ execute-keys -draft ^\h*(?:when)$ i ^\h*(?:case) 1 } # align 'rescue' to 'begin/def' - try %{ execute-keys -draft ^\h*(?:rescue)$ i ^\h*(?:begin|def) 1 } + try %{ execute-keys -draft ^\h*(?:rescue)$ i ^\h*(?:begin|def) 1 } # align 'end' to opening structure - try %{ execute-keys -draft ^\h*(?:end)$ i ^\h*(?:begin|case|class|def|for|if|module|unless|until|while) 1 } + try %{ execute-keys -draft ^\h*(?:end)$ i ^\h*(?:begin|case|class|def|for|if|module|unless|until|while) 1 } } }