summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-12 14:26:09 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-10-12 14:26:09 (GMT)
commit3f7f4e1d2ea9f9ed658d44343676fe61b2199489 (patch)
treee85f9e384ea27e98d41707abb96cf67d1a61905a
parent2f2baf09fda85164f4666135e5664914ea5dc4dd (diff)
parenta935745d0730cf1cd6c1a880d71e36a39ad86f8c (diff)
downloadCMake-3f7f4e1d2ea9f9ed658d44343676fe61b2199489.zip
CMake-3f7f4e1d2ea9f9ed658d44343676fe61b2199489.tar.gz
CMake-3f7f4e1d2ea9f9ed658d44343676fe61b2199489.tar.bz2
Merge topic 'emacs-mode-fix-accidental-indentation'
a935745d cmake-mode.el: treat keywords as symbols
-rw-r--r--Auxiliary/cmake-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el
index 11e33b3..e50ae7b 100644
--- a/Auxiliary/cmake-mode.el
+++ b/Auxiliary/cmake-mode.el
@@ -70,11 +70,11 @@ set the path with these commands:
(defconst cmake-regex-indented
(rx-to-string `(and bol (* (group (or (regexp ,cmake-regex-token) (any space ?\n)))))))
(defconst cmake-regex-block-open
- (rx-to-string `(and bow (or ,@(append cmake-keywords-block-open
- (mapcar 'downcase cmake-keywords-block-open))) eow)))
+ (rx-to-string `(and symbol-start (or ,@(append cmake-keywords-block-open
+ (mapcar 'downcase cmake-keywords-block-open))) symbol-end)))
(defconst cmake-regex-block-close
- (rx-to-string `(and bow (or ,@(append cmake-keywords-block-close
- (mapcar 'downcase cmake-keywords-block-close))) eow)))
+ (rx-to-string `(and symbol-start (or ,@(append cmake-keywords-block-close
+ (mapcar 'downcase cmake-keywords-block-close))) symbol-end)))
(defconst cmake-regex-close
(rx-to-string `(and bol (* space) (regexp ,cmake-regex-block-close)
(* space) (regexp ,cmake-regex-paren-left))))