diff options
author | Karthik Krishnan <karthik.krishnan@kitware.com> | 2008-01-16 16:53:53 (GMT) |
---|---|---|
committer | Karthik Krishnan <karthik.krishnan@kitware.com> | 2008-01-16 16:53:53 (GMT) |
commit | 25e00a332ba9451d4899814f77b3eadb7febd180 (patch) | |
tree | 285a5c4467de90f7ca49125dfed1a64ea511611e /Docs/cmake-indent.vim | |
parent | a06dcdba970b5ea1cf570de1a9f7f038af849496 (diff) | |
download | CMake-25e00a332ba9451d4899814f77b3eadb7febd180.zip CMake-25e00a332ba9451d4899814f77b3eadb7febd180.tar.gz CMake-25e00a332ba9451d4899814f77b3eadb7febd180.tar.bz2 |
ENH: ~/CMake/src/Docs
* Additions for cmake-command highligting.
* Additions for operator-highlighting
Diffstat (limited to 'Docs/cmake-indent.vim')
-rw-r--r-- | Docs/cmake-indent.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Docs/cmake-indent.vim b/Docs/cmake-indent.vim index 6ecf800..f149873 100644 --- a/Docs/cmake-indent.vim +++ b/Docs/cmake-indent.vim @@ -11,7 +11,7 @@ " Vim indent file " Language: CMake (ft=cmake) " Author: Andy Cedilnik <andy.cedilnik@kitware.com> -" Maintainer: Andy Cedilnik <andy.cedilnik@kitware.com> +" Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com> " Last Change: $Date$ " Version: $Revision$ " @@ -66,8 +66,8 @@ fun! CMakeGetIndent(lnum) \ ')\s*' . \ '\(' . cmake_regex_comment . '\)\?$' - 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*(' + let cmake_indent_begin_regex = '^\s*\(IF\|MACRO\|FOREACH\|ELSE\|ELSEIF\|WHILE\|FUNCTION\)\s*(' + let cmake_indent_end_regex = '^\s*\(ENDIF\|ENDFOREACH\|ENDMACRO\|ELSE\|ELSEIF\|ENDWHILE\|ENDFUNCTION\)\s*(' " Add if previous_line =~? cmake_indent_comment_line " Handle comments |