1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

cmake-mode.el: Fix function name font-lock

Allow space separating name and opening parenthesis.
This commit is contained in:
Roy Crihfield
2015-08-13 10:23:34 -05:00
committed by Brad King
parent fb3035a92c
commit 758664b7ad

View File

@@ -198,7 +198,7 @@ the indentation. Otherwise it retains the same position on the line"
,@(mapcar #'downcase cmake-keywords))
symbol-end))
. font-lock-keyword-face)
(,(rx symbol-start (group (+ (or word (syntax symbol)))) ?\()
(,(rx symbol-start (group (+ (or word (syntax symbol)))) (* blank) ?\()
1 font-lock-function-name-face)
("\\${?\\([[:alpha:]_][[:alnum:]_]*\\|[0-9]+\\|[$*_]\\)"
1 font-lock-variable-name-face t)