summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Crihfield <rscrihf@gmail.com>2015-08-13 15:54:27 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-14 14:16:22 (GMT)
commit64e6bc5ca3bf15239829f18a71511df2f04181b3 (patch)
treeda5d706bbe79d4e4e5fe8b0522e052d0c7b99744
parent758664b7ad018aa19072fe5c359a702c472faae2 (diff)
downloadCMake-64e6bc5ca3bf15239829f18a71511df2f04181b3.zip
CMake-64e6bc5ca3bf15239829f18a71511df2f04181b3.tar.gz
CMake-64e6bc5ca3bf15239829f18a71511df2f04181b3.tar.bz2
cmake-mode.el: Refine variable font-lock
Simplify regexp for variable names, and allow more legal characters. Remove `$ *` as legal chars, and allow `- + / .` in names.
-rw-r--r--Auxiliary/cmake-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el
index cf82d09..11e33b3 100644
--- a/Auxiliary/cmake-mode.el
+++ b/Auxiliary/cmake-mode.el
@@ -200,7 +200,7 @@ the indentation. Otherwise it retains the same position on the line"
. font-lock-keyword-face)
(,(rx symbol-start (group (+ (or word (syntax symbol)))) (* blank) ?\()
1 font-lock-function-name-face)
- ("\\${?\\([[:alpha:]_][[:alnum:]_]*\\|[0-9]+\\|[$*_]\\)"
+ (,(rx "${" (group (+(any alnum "-_+/."))) "}")
1 font-lock-variable-name-face t)
)
"Highlighting expressions for CMake mode.")