cpp-font-lock-keywords
cpp-font-lock-keywords is a variable defined in `
font-lock.el
'.
Its value is shown
below.
- This variable may be risky if used as a file-local variable.
Documentation:
Font lock keywords for C preprocessor directives.
`c-mode', `c++-mode' and `objc-mode' have their own font lock keywords
for C preprocessor directives. This definition is for the other modes
in which C preprocessor directives are used. e.g. `asm-mode' and
`ld-script-mode'.
Value:
(("^#[ ]*\\(?:error\\|warning\\)[ ]+\\(.+\\)" 1 font-lock-warning-face prepend)
("^#[ ]*\\(?:import\\|include\\)[ ]*\\(<[^>\"\n]*>?\\)" 1 font-lock-string-face prepend)
("^#[ ]*define[ ]+\\([[:alpha:]_][[:alnum:]_$]*\\)("
(1 font-lock-function-name-face prepend)
((lambda
(limit)
(re-search-forward "\\(?:\\([[:alpha:]_][[:alnum:]_]*\\)[,]?\\)"
(or
(save-excursion
(re-search-forward ")" limit t))
limit)
t))
nil nil
(1 font-lock-variable-name-face prepend)))
("^#[ ]*\\(?:elif\\|if\\)\\>"
("\\<\\(defined\\)\\>[ ]*(?\\([[:alpha:]_][[:alnum:]_]*\\)?" nil nil
(1 font-lock-builtin-face prepend)
(2 font-lock-variable-name-face prepend t)))
("^\\(#[ ]*\\(?:define\\|e\\(?:l\\(?:if\\|se\\)\\|ndif\\|rror\\)\\|file\\|i\\(?:f\\(?:n?def\\)?\\|mport\\|nclude\\)\\|line\\|pragma\\|undef\\|warning\\)\\)\\>[ !]*\\([[:alpha:]_][[:alnum:]_]*\\)?"
(1 font-lock-preprocessor-face prepend)
(2 font-lock-variable-name-face nil t)))