From dc268758dd9e88356f301cf2ae24ccdd3837df60 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 27 Nov 2012 14:03:21 +0100 Subject: [PATCH] fix cpp indent filter --- src/rc/cpp.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/cpp.kak b/src/rc/cpp.kak index d318df4a..75f71e93 100644 --- a/src/rc/cpp.kak +++ b/src/rc/cpp.kak @@ -19,7 +19,7 @@ hook global WinSetOption filetype=cpp %~ addhl -group cpp-highlight regex "(\`|(?<=\n))\h*#\h*[^\n]*" 0:macro addhl -group cpp-highlight regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" 0:comment addfilter group cpp-filters - addfilter -group cpp-filters regex ^(\h+)[^\n]*[^([{]\h* \n \n$1 + addfilter -group cpp-filters regex ^(\h+)([^\n]*[^([{]\h*|$) \n \n$1 addfilter -group cpp-filters regex ^(\h*)[^\n]*[([{]\h* \n '\n$1 ' addfilter -group cpp-filters cleanup_whitespaces hook window InsertEnd .* %{ exec xs\h+(?=\n)d }