From 2de803ee17209bd689541699f661d16b723b75a1 Mon Sep 17 00:00:00 2001 From: John Isom Date: Tue, 28 Jul 2020 16:08:41 -0600 Subject: [PATCH] Update deindenting in rust.kak --- rc/filetype/rust.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/rust.kak b/rc/filetype/rust.kak index a5f05da2..92d5cfa8 100644 --- a/rc/filetype/rust.kak +++ b/rc/filetype/rust.kak @@ -113,7 +113,7 @@ define-command -hidden rust-indent-on-new-line %~ # dedent after lines starting with . and ending with , or ; try %_ execute-keys -draft k ^\h*\..*[,]\h*$ j _ # deindent closing brace(s) when after cursor - try %< execute-keys -draft ^\h*[})]+\h*$ hm 1 > + try %= execute-keys -draft ^\h*[})]+\h*$ \; [})] m 1 = # todo dedent additional unmatched parenthesis # try %& execute-keys -draft k s \((?:[^)(]+|\((?:[^)(]+|\([^)(]*\))*\))*\) l Gl s\) %sh{ # count previous selections length