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