-
-
Save vermiculus/6b2e6aad3c2ec14dc20d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; (defface font-lock-warning-face | |
; '((t :inherit error)) | |
; "Font Lock mode face used to highlight warnings." | |
; :group 'font-lock-faces) | |
(defface my-code-section-face | |
'((t :inherit error)) | |
"Face used for comment guards") | |
(defun add-c-syntax-highlighting () | |
(font-lock-add-keywords nil '( | |
("\\(//\\-+\\)" 1 (if t font-lock-warning-face | |
my-code-section-face) prepend)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment