mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/cc: fontify constants only in c/c++ buffers
This commit is contained in:
@ -66,10 +66,11 @@ preceded by the opening brace or a comma (disregarding whitespace in between)."
|
|||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +cc|fontify-constants ()
|
(defun +cc|fontify-constants ()
|
||||||
"Better fontification for preprocessor constants"
|
"Better fontification for preprocessor constants"
|
||||||
(font-lock-add-keywords
|
(when (memq major-mode '(c-mode c++-mode))
|
||||||
nil '(("\\<[A-Z]*_[A-Z_]+\\>" . font-lock-constant-face)
|
(font-lock-add-keywords
|
||||||
("\\<[A-Z]\\{3,\\}\\>" . font-lock-constant-face))
|
nil '(("\\<[A-Z]*_[A-Z_]+\\>" . font-lock-constant-face)
|
||||||
t))
|
("\\<[A-Z]\\{3,\\}\\>" . font-lock-constant-face))
|
||||||
|
t)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +cc|irony-init-compile-options ()
|
(defun +cc|irony-init-compile-options ()
|
||||||
|
Reference in New Issue
Block a user