From e3d7dbd2f8178069eb00227f075fc70972285286 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 21 Apr 2006 07:17:03 -0400 Subject: ENH: Add While support --- Docs/cmake-indent.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/cmake-indent.vim b/Docs/cmake-indent.vim index e36937d..d0711d9 100644 --- a/Docs/cmake-indent.vim +++ b/Docs/cmake-indent.vim @@ -65,8 +65,8 @@ fun! CMakeGetIndent(lnum) \ ')\s*' . \ '\(' . cmake_regex_comment . '\)\?$' - let cmake_indent_begin_regex = '^\s*\(IF\|MACRO\|FOREACH\|ELSE\)\s*(' - let cmake_indent_end_regex = '^\s*\(ENDIF\|ENDFOREACH\|ENDMACRO\|ELSE\)\s*(' + let cmake_indent_begin_regex = '^\s*\(IF\|MACRO\|FOREACH\|ELSE\|WHILE\)\s*(' + let cmake_indent_end_regex = '^\s*\(ENDIF\|ENDFOREACH\|ENDMACRO\|ELSE\|ENDWHILE\)\s*(' " Add if previous_line =~? cmake_indent_comment_line " Handle comments -- cgit v0.12