diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-21 22:12:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-21 22:12:41 +0000 |
commit | 57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 (patch) | |
tree | 35b6845dc38717148718ac5cf70553b8c2cb96d8 /runtime/indent/cmake.vim | |
parent | fc1421eb53b17aa58b01a9c07ba2007eb4a1aa4f (diff) | |
download | vim-57657d85c6c3d812e99b5e5d5161c07c66ac7dc7.zip |
updated for version 7.0e05
Diffstat (limited to 'runtime/indent/cmake.vim')
-rw-r--r-- | runtime/indent/cmake.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/indent/cmake.vim b/runtime/indent/cmake.vim index e36937df5..a1ad832f2 100644 --- a/runtime/indent/cmake.vim +++ b/runtime/indent/cmake.vim @@ -56,7 +56,7 @@ fun! CMakeGetIndent(lnum) \ or . '[^()\\#"]' . or . '\\.' . '\)*' let cmake_indent_comment_line = '^\s*' . cmake_regex_comment - let cmake_indent_blank_regex = '^\s*$') + let cmake_indent_blank_regex = '^\s*$' let cmake_indent_open_regex = '^\s*' . cmake_regex_identifier . \ '\s*(' . cmake_regex_arguments . \ '\(' . cmake_regex_comment . '\)\?$' @@ -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 |