diff --git a/rc/filetype/rust.kak b/rc/filetype/rust.kak index 24d36f88..96115418 100644 --- a/rc/filetype/rust.kak +++ b/rc/filetype/rust.kak @@ -127,7 +127,7 @@ define-command -hidden rust-indent-on-opening-curly-brace %[ evaluate-commands -draft -itersel %_ # align indent with opening paren when { is entered on a new line after the closing paren try %[ execute-keys -draft h ) M \A\(.*\)\h*\n\h*\{\z s \A|.\z 1 ] - # dedent standalone { after impl or fn block without any { in between + # dedent standalone { after impl and related block without any { in between try %< execute-keys -draft hh impl|fn|struct|enum|union \{ ll ^\h*\{$ > _ ]