From f5c2801931bc5f0aaa7d5d2f187d0cadbca36bdb Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 19 Jun 2003 14:30:41 -0400 Subject: [PATCH] Minor tweaks for anal cases of indentation. --- Docs/cmake-mode.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index ea133d56e..fe9449fb9 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-quoted "\"\\([^\n\"\\\\]\\|\\\\.\\)*\"") -(defconst cmake-regex-arguments (concat "\\(" cmake-regex-quoted - "\\|" "[^\n()#\\\\]" - "\\|" "\\\\." - "\\)*")) (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()#\"\\\\]" + "\\|" "\\\\." + "\\|" "\\$(" cmake-regex-identifier ")" + "\\)*")) (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