diff options
author | Brad King <brad.king@kitware.com> | 2003-06-19 18:30:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-19 18:30:41 (GMT) |
commit | f5c2801931bc5f0aaa7d5d2f187d0cadbca36bdb (patch) | |
tree | aa18b1bc5bc274a65bcc9105e564687ae4face53 /Docs | |
parent | 70c65ea016b64041f02aaf96699f4e7167f26488 (diff) | |
download | CMake-f5c2801931bc5f0aaa7d5d2f187d0cadbca36bdb.zip CMake-f5c2801931bc5f0aaa7d5d2f187d0cadbca36bdb.tar.gz CMake-f5c2801931bc5f0aaa7d5d2f187d0cadbca36bdb.tar.bz2 |
Minor tweaks for anal cases of indentation.
Diffstat (limited to 'Docs')
-rw-r--r-- | Docs/cmake-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index ea133d5..fe9449f 100644 --- a/Docs/cmake-mode.el +++ b/Docs/cmake-mode.el @@ -12,13 +12,14 @@ (defvar cmake-tab-width 2) ; Regular expressions used by line indentation function. +(defconst cmake-regex-comment "#.*") +(defconst cmake-regex-identifier "[A-Za-z][A-Za-z0-9_]*") (defconst cmake-regex-quoted "\"\\([^\n\"\\\\]\\|\\\\.\\)*\"") (defconst cmake-regex-arguments (concat "\\(" cmake-regex-quoted - "\\|" "[^\n()#\\\\]" + "\\|" "[^\n()#\"\\\\]" "\\|" "\\\\." + "\\|" "\\$(" cmake-regex-identifier ")" "\\)*")) -(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]*$") (defconst cmake-indent-open-regex (concat "^[ \t]*" cmake-regex-identifier |