diff options
author | Brad King <brad.king@kitware.com> | 2003-06-19 18:17:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-19 18:17:43 (GMT) |
commit | 218efecd890bf41d968f2b56ef01ea6acd9664b7 (patch) | |
tree | a4a4f1a9d2b6510bfde85753fa74533bcb6ff928 | |
parent | 1c2025290859dc085b1301cfb29eeb477ab2ea38 (diff) | |
download | CMake-218efecd890bf41d968f2b56ef01ea6acd9664b7.zip CMake-218efecd890bf41d968f2b56ef01ea6acd9664b7.tar.gz CMake-218efecd890bf41d968f2b56ef01ea6acd9664b7.tar.bz2 |
BUG: Don't open a block if a command starts with IF in its name.
-rw-r--r-- | Docs/cmake-mode.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index 7699cab..ea133d5 100644 --- a/Docs/cmake-mode.el +++ b/Docs/cmake-mode.el @@ -14,10 +14,10 @@ ; Regular expressions used by line indentation function. (defconst cmake-regex-quoted "\"\\([^\n\"\\\\]\\|\\\\.\\)*\"") (defconst cmake-regex-arguments (concat "\\(" cmake-regex-quoted - "\\|" "[^\n()\\\\]" + "\\|" "[^\n()#\\\\]" "\\|" "\\\\." "\\)*")) -(defconst cmake-regex-comment "#[^\n]*") +(defconst cmake-regex-comment "#.*") (defconst cmake-regex-identifier "[A-Za-z][A-Za-z0-9_]*") (defconst cmake-indent-comment-line (concat "^[ \t]*" cmake-regex-comment)) (defconst cmake-indent-blank-regex "^[ \t]*$") @@ -29,8 +29,8 @@ ")[ \t]*" "\\(" cmake-regex-comment "\\)?" "\n")) -(defconst cmake-indent-begin-regex "^[ \t]*\\(IF\\|MACRO\\|FOREACH\\|ELSE\\)") -(defconst cmake-indent-end-regex "^[ \t]*\\(ENDIF\\|ENDFOREACH\\|ENDMACRO\\|ELSE\\)") +(defconst cmake-indent-begin-regex "^[ \t]*\\(IF\\|MACRO\\|FOREACH\\|ELSE\\)[ \t]*(") +(defconst cmake-indent-end-regex "^[ \t]*\\(ENDIF\\|ENDFOREACH\\|ENDMACRO\\|ELSE\\)[ \t]*(") ; Line indentation function. (defun cmake-indent () |