From e0c98055abc5e10c4e785a9e8b05d98495ee7d7e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 6 Oct 2014 19:33:02 +0100 Subject: [PATCH] Fix cpp indentation align to opening paren --- rc/cpp.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/cpp.kak b/rc/cpp.kak index e8fbe4f0..9a06a467 100644 --- a/rc/cpp.kak +++ b/rc/cpp.kak @@ -15,7 +15,7 @@ def -hidden _cpp_indent_on_new_line %~ # cleanup trailing white space son previous line try %{ exec -draft k s \h+$ d } # align to opening paren of previous line - try %{ exec -draft [( \`\([^\n]+\n[^\n]*\n?\' s \`\(\h*.|.\' & } + try %{ exec -draft [( \`\([^\n]+\n[^\n]*\n?\' s \`\(\h*.|.\' '' & } # align to previous statement start when previous line closed a parenthesis # try %{ exec -draft \)M\`\(.*\)[^\n()]*\n\h*\n?\'s\`|.\'1 } # copy // comments prefix