ENH: Add While support
This commit is contained in:
parent
2a335ae748
commit
e3d7dbd2f8
@ -65,8 +65,8 @@ fun! CMakeGetIndent(lnum)
|
|||||||
\ ')\s*' .
|
\ ')\s*' .
|
||||||
\ '\(' . cmake_regex_comment . '\)\?$'
|
\ '\(' . cmake_regex_comment . '\)\?$'
|
||||||
|
|
||||||
let cmake_indent_begin_regex = '^\s*\(IF\|MACRO\|FOREACH\|ELSE\)\s*('
|
let cmake_indent_begin_regex = '^\s*\(IF\|MACRO\|FOREACH\|ELSE\|WHILE\)\s*('
|
||||||
let cmake_indent_end_regex = '^\s*\(ENDIF\|ENDFOREACH\|ENDMACRO\|ELSE\)\s*('
|
let cmake_indent_end_regex = '^\s*\(ENDIF\|ENDFOREACH\|ENDMACRO\|ELSE\|ENDWHILE\)\s*('
|
||||||
|
|
||||||
" Add
|
" Add
|
||||||
if previous_line =~? cmake_indent_comment_line " Handle comments
|
if previous_line =~? cmake_indent_comment_line " Handle comments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user