diff --git a/rc/cpp.kak b/rc/cpp.kak index 0208a08d..b53f0787 100644 --- a/rc/cpp.kak +++ b/rc/cpp.kak @@ -19,7 +19,7 @@ def -hidden _cpp_indent_on_new_line %~ # align to previous statement start when previous line closed a parenthesis # try %{ exec -draft \)M\`\(.*\)[^\n()]*\n\h*\n?\'s\`|.\'1 } # copy // comments prefix - try %{ exec -draft k s ^\h*\K(/{2,}) yjglp } + try %{ exec -draft \;k s ^\h*\K/{2,} yP } # indent after visibility specifier try %[ exec -draft k ^\h*(public|private|protected):\h*$ j ] # indent after if|else|while|for