diff options
Diffstat (limited to 'Docs/cmake-indent.vim')
-rw-r--r-- | Docs/cmake-indent.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Docs/cmake-indent.vim b/Docs/cmake-indent.vim index a1ad832..b54a8d8 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\|WHILE\)\s*(' - let cmake_indent_end_regex = '^\s*\(ENDIF\|ENDFOREACH\|ENDMACRO\|ELSE\|ENDWHILE\)\s*(' + let cmake_indent_begin_regex = '^\s*\(IF\|MACRO\|FOREACH\|ELSE\|ELSEIF\|WHILE\)\s*(' + let cmake_indent_end_regex = '^\s*\(ENDIF\|ENDFOREACH\|ENDMACRO\|ELSE\|ELSEIF\|ENDWHILE\)\s*(' " Add if previous_line =~? cmake_indent_comment_line " Handle comments |