From ece9ae97e267b2fc64b319324c7fa08fa88e738e Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 19 Feb 2004 10:28:57 -0500 Subject: BUG: Fixed identification of ( and ) tokens to avoid finding them in string literals. --- Docs/cmake-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index cca6f00..6cd33f3 100644 --- a/Docs/cmake-mode.el +++ b/Docs/cmake-mode.el @@ -107,10 +107,10 @@ ; Search forward counting tokens that adjust indentation. (while (re-search-forward cmake-regex-token point-start t) (setq token (match-string 0)) - (if (string-match cmake-regex-paren-left token) + (if (string-match (concat "^" cmake-regex-paren-left "$") token) (setq cur-indent (+ cur-indent cmake-tab-width)) ) - (if (string-match cmake-regex-paren-right token) + (if (string-match (concat "^" cmake-regex-paren-right "$") token) (setq cur-indent (- cur-indent cmake-tab-width)) ) (if (string-match cmake-regex-block-open token) -- cgit v0.12