nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH 2/2 v2] Elisp syntax


From: Mark Oteiza
Subject: Re: [Nano-devel] [PATCH 2/2 v2] Elisp syntax
Date: Fri, 17 Apr 2015 23:35:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Added comments and some more elisp functions/macros

Index: Makefile.am
===================================================================
--- Makefile.am (revision 5198)
+++ Makefile.am (working copy)
@@ -6,6 +6,7 @@
                css.nanorc \
                debian.nanorc \
                default.nanorc \
+               elisp.nanorc \
                fortran.nanorc \
                gentoo.nanorc \
                go.nanorc \
Index: elisp.nanorc
===================================================================
--- elisp.nanorc        (revision 0)
+++ elisp.nanorc        (working copy)
@@ -0,0 +1,31 @@
+## Here is an example for Emacs lisp.
+
+syntax "elisp" "\.el$"
+
+# Basic functions/macros
+color brightcyan 
"\<(let|if|when|unless|and|or|lambda|dolist|dotimes|while|cond|progn)\>"
+color brightcyan "\<save-(excursion|window-excursion|restriction)\>"
+color brightcyan "\<eval-(and|when)-compile\>"
+# Defining functions
+color brightcyan "\<def(un|macro|alias|subst|generic)\>"
+color brightcyan "\<cl-def(un|macro|subst|generic|struct|type)\>"
+color brightcyan "\<define-(derived|minor|generic)-mode\>"
+# Defining variables
+color brightcyan "\<def(var|const|class|var-local|varalias)\>"
+# Customization functions
+color brightcyan "\<def(group|custom|face|theme)\>"
+# Setting values
+color brightcyan 
"\<(setq|setq-default|setq-local|setf|push|pop|declare|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:]]);.*$"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]