mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-13 22:37:21 +03:00
6ff772b8d9
Patch by Mark Oteiza. (Tweaked by Benno.) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5204 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
## Here is an example for Emacs Lisp.
|
|
|
|
syntax "elisp" "\.el$"
|
|
|
|
# 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
|
|
color yellow start="^[[:blank:]]+\"" end="[^\]\""
|
|
color yellow ""(\\.|[^"])*""
|
|
# Comments
|
|
color cyan "(^|[[:space:]]);.*$"
|