Variable: cmake-font-lock-keywords
cmake-font-lock-keywords is a variable defined in cmake-mode.el.
Value
(("\\(?:\\_<\\(?:BLOCK\\|E\\(?:LSE\\(?:IF\\)?\\|ND\\(?:BLOCK\\|F\\(?:OREACH\\|UNCTION\\)\\|IF\\|MACRO\\|WHILE\\)\\)\\|F\\(?:OREACH\\|UNCTION\\)\\|IF\\|MACRO\\|WHILE\\|block\\|e\\(?:lse\\(?:if\\)?\\|nd\\(?:block\\|f\\(?:oreach\\|unction\\)\\|if\\|macro\\|while\\)\\)\\|f\\(?:oreach\\|unction\\)\\|if\\|macro\\|while\\)\\_>\\)"
. font-lock-keyword-face)
("\\_<\\(\\(?:[[:word:]]\\|\\s_\\)+\\)[[:blank:]]*(" 1
font-lock-function-name-face)
("\\${\\([+./_[:alnum:]-]+\\)}" 1 font-lock-variable-name-face t))
Documentation
Highlighting expressions for CMake mode.
Source Code
;; Defined in /nix/store/xpmgnbrvz0j5ic5m3q6fvh28ca8a9avm-emacs-packages-deps/share/emacs/site-lisp/elpa/cmake-mode-20261002.1529/cmake-mode.el
;------------------------------------------------------------------------------
;;
;; Keyword highlighting regex-to-face map.
;;
(defconst cmake-font-lock-keywords
`((,(rx-to-string `(and symbol-start
(or ,@cmake-keywords
,@(mapcar #'downcase cmake-keywords))
symbol-end))
. 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.")