blob: 785827eebfd0ca60c6a4cf0fc65ce754e3f2a61c [file] [log] [blame]
Benno Schulenberg6ff772b2015-04-18 13:04:57 +00001## Here is an example for Emacs Lisp.
2
3syntax "elisp" "\.el$"
Mike Scalora6a2032f2016-05-25 22:13:50 +02004comment ";"
Benno Schulenberg6ff772b2015-04-18 13:04:57 +00005
6# Basic functions/macros
7color brightcyan "\<(if|when|unless|cond|and|or|lambda|let|progn|while|dolist|dotimes)\>"
8color brightcyan "\<save-((window-)?excursion|restriction)\>"
9color brightcyan "\<eval-(and|when)-compile\>"
10# Defining functions
11color brightcyan "\<def(un|macro|subst|generic|alias)\>"
12color brightcyan "\<cl-def(un|macro|subst|generic|struct|type)\>"
13color brightcyan "\<define-(derived|minor|generic)-mode\>"
14# Defining variables
15color brightcyan "\<def(class|const|var(-local|alias)?)\>"
16# Customization functions
17color brightcyan "\<def(custom|face|group|theme)\>"
18# Setting values
19color brightcyan "\<(setq(-default|-local)?|setf|push|pop|declare(-function)?)\>"
20# Feature functions
21color brightcyan "\<(require|provide)\>"
22# Quoted symbols
23color brightyellow "#?'\<(\w|-)+\>"
24# Booleans
25color brightred "\<(t|nil)\>"
26# Keywords
27color blue ":(\w|[?-])+"
28# Strings
29color yellow start="^[[:blank:]]+\"" end="[^\]\""
30color yellow ""(\\.|[^"])*""
31# Comments
32color cyan "(^|[[:space:]]);.*$"