summaryrefslogtreecommitdiffstats
path: root/Docs/cmake-indent.vim
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-23 21:09:08 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-23 21:09:08 (GMT)
commitf75958b8cb049a99a502506a8ed570ff532cfffc (patch)
tree20879ac39bfa2469ac8a1edc1c0207f9889125b2 /Docs/cmake-indent.vim
parent13380569f37c969e1f3b3c722aa8ebb2551baf86 (diff)
downloadCMake-f75958b8cb049a99a502506a8ed570ff532cfffc.zip
CMake-f75958b8cb049a99a502506a8ed570ff532cfffc.tar.gz
CMake-f75958b8cb049a99a502506a8ed570ff532cfffc.tar.bz2
ENH: Adding elseif to VIM syntax and indentation files. See bug #3781.
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 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