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.
This commit is contained in:
Roy Crihfield 2015-08-13 10:54:27 -05:00 committed by Brad King
parent 758664b7ad
commit 64e6bc5ca3
1 changed files with 1 additions and 1 deletions

View File

@ -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.")