summaryrefslogtreecommitdiffstats
path: root/Docs/cmake-indent.vim
diff options
context:
space:
mode:
Diffstat (limited to 'Docs/cmake-indent.vim')
-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 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