Created
October 29, 2016 23:19
-
-
Save mikepjb/74e7bf268ad038918a15f1c6f510931d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(setq sentient-highlights | |
'(("function" . font-lock-function-name-face) | |
("bool" . font-lock-type-face) | |
("int[0-9]+" . font-lock-type-face) | |
("array[0-9]+" . font-lock-type-face) | |
("(true|false)" . font-lock-doc-face) | |
("\{" . font-lock-function-name-face) | |
("\}" . font-lock-function-name-face) | |
(";" . font-lock-string-face) | |
("*[a-z]*.?" . font-lock-function-name-face) | |
)) | |
(defun sentient-mode-variables () | |
(setq-local comment-start "#")) | |
(define-derived-mode sentient-mode prog-mode "Sentient" | |
"Major mode for editing Sentient code." | |
(setq font-lock-defaults '(sentient-highlights)) | |
(sentient-mode-variables)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment