[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH 1/2] Guile syntax
From: |
Mark Oteiza |
Subject: |
[Nano-devel] [PATCH 1/2] Guile syntax |
Date: |
Thu, 16 Apr 2015 02:39:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi,
Here are patches for the two lisp syntax files.
Index: Makefile.am
===================================================================
--- doc/syntax/Makefile.am (revision 5198)
+++ doc/syntax/Makefile.am (working copy)
@@ -10,6 +10,7 @@
gentoo.nanorc \
go.nanorc \
groff.nanorc \
+ guile.nanorc \
html.nanorc \
java.nanorc \
javascript.nanorc \
Index: guile.nanorc
===================================================================
--- doc/syntax/guile.nanorc (revision 0)
+++ doc/syntax/guile.nanorc (working copy)
@@ -0,0 +1,23 @@
+## Here is an example for Guile scheme.
+
+syntax "guile" "\.scm$"
+header "^#!.*guile"
+magic "guile"
+
+color green "\<(let|if|when|unless|lambda|map)\>"
+color brightcyan "\<(define|define-syntax|define-macro)\>"
+color brightcyan "\<(define-module|define-public)\>"
+# Quoted symbols
+color brightyellow "'\<(\w|-)+\>"
+# Chars
+color brightmagenta "#\\."
+color brightmagenta "#\\\w+\>"
+# Booleans
+color brightred "(#t|#f)\>"
+# Keywords
+color blue "#?:(\w|[?-])+"
+# Strings
+color yellow start="^[[:blank:]]+\"" end="[^\]\""
+color yellow ""(\\.|[^"])*""
+# Comments
+color cyan "(^|[[:space:]]);.*$"