2020-04-20 20:15:43 +03:00
|
|
|
## Syntax highlighting for Emacs Lisp.
|
2015-04-18 16:04:57 +03:00
|
|
|
|
2018-02-07 13:25:46 +03:00
|
|
|
syntax elisp "\.el$"
|
2017-11-19 13:10:53 +03:00
|
|
|
magic "Lisp/Scheme program"
|
2016-05-25 23:13:50 +03:00
|
|
|
comment ";"
|
2015-04-18 16:04:57 +03:00
|
|
|
|
|
|
|
# Basic functions/macros
|
|
|
|
color brightcyan "\<(if|when|unless|cond|and|or|lambda|let|progn|while|dolist|dotimes)\>"
|
|
|
|
color brightcyan "\<save-((window-)?excursion|restriction)\>"
|
|
|
|
color brightcyan "\<eval-(and|when)-compile\>"
|
|
|
|
# Defining functions
|
|
|
|
color brightcyan "\<def(un|macro|subst|generic|alias)\>"
|
|
|
|
color brightcyan "\<cl-def(un|macro|subst|generic|struct|type)\>"
|
|
|
|
color brightcyan "\<define-(derived|minor|generic)-mode\>"
|
|
|
|
# Defining variables
|
|
|
|
color brightcyan "\<def(class|const|var(-local|alias)?)\>"
|
|
|
|
# Customization functions
|
|
|
|
color brightcyan "\<def(custom|face|group|theme)\>"
|
|
|
|
# Setting values
|
|
|
|
color brightcyan "\<(setq(-default|-local)?|setf|push|pop|declare(-function)?)\>"
|
|
|
|
# Feature functions
|
|
|
|
color brightcyan "\<(require|provide)\>"
|
|
|
|
# Quoted symbols
|
|
|
|
color brightyellow "#?'\<(\w|-)+\>"
|
|
|
|
# Booleans
|
|
|
|
color brightred "\<(t|nil)\>"
|
|
|
|
# Keywords
|
|
|
|
color blue ":(\w|[?-])+"
|
|
|
|
# Strings
|
2020-07-27 11:47:27 +03:00
|
|
|
color yellow start="^[[:blank:]]+"" end="[^\]""
|
2021-10-27 10:45:42 +03:00
|
|
|
color yellow ""([^"\]|\\.)*""
|
2015-04-18 16:04:57 +03:00
|
|
|
# Comments
|
2021-04-27 12:18:41 +03:00
|
|
|
color cyan "(^|[[:blank:]]);.*"
|