Skip to content

Instantly share code, notes, and snippets.

@mikepjb
Created October 29, 2016 23:19
Show Gist options
  • Save mikepjb/74e7bf268ad038918a15f1c6f510931d to your computer and use it in GitHub Desktop.
Save mikepjb/74e7bf268ad038918a15f1c6f510931d to your computer and use it in GitHub Desktop.
(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