Commit 64e6bc5c authored by Roy Crihfield's avatar Roy Crihfield Committed by Brad King

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.
parent 758664b7
......@@ -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)
(,(rx "${" (group (+(any alnum "-_+/."))) "}")
1 font-lock-variable-name-face t)
"Highlighting expressions for CMake mode.")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment