summaryrefslogtreecommitdiffstats
path: root/Docs
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-02-19 15:28:57 (GMT)
committerBrad King <brad.king@kitware.com>2004-02-19 15:28:57 (GMT)
commitece9ae97e267b2fc64b319324c7fa08fa88e738e (patch)
treee880d957f206b88009ff90c2adab0f3497ba132e /Docs
parentbfe234da939d57be7b6d54835a57f0f6fdf413d3 (diff)
downloadCMake-ece9ae97e267b2fc64b319324c7fa08fa88e738e.zip
CMake-ece9ae97e267b2fc64b319324c7fa08fa88e738e.tar.gz
CMake-ece9ae97e267b2fc64b319324c7fa08fa88e738e.tar.bz2
BUG: Fixed identification of ( and ) tokens to avoid finding them in string literals.
Diffstat (limited to 'Docs')
-rw-r--r--Docs/cmake-mode.el4
1 files 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)