summaryrefslogtreecommitdiff
path: root/Docs
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-21 07:17:03 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-21 07:17:03 -0400
commite3d7dbd2f8178069eb00227f075fc70972285286 (patch)
treee1aba552db52d351ca02f5791ba66016c1015834 /Docs
parent2a335ae7487cfb54f518a116fc92ac55f58eee6a (diff)
downloadcmake-e3d7dbd2f8178069eb00227f075fc70972285286.tar.gz
ENH: Add While support
Diffstat (limited to 'Docs')
-rw-r--r--Docs/cmake-indent.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/Docs/cmake-indent.vim b/Docs/cmake-indent.vim
index e36937df5b..d0711d9c71 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