[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH 1/2 v2] Guile syntax
From: |
Mark Oteiza |
Subject: |
Re: [Nano-devel] [PATCH 1/2 v2] Guile syntax |
Date: |
Fri, 17 Apr 2015 23:36:28 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Comments and just a couple more functions added
Index: Makefile.am
===================================================================
--- Makefile.am (revision 5198)
+++ 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
===================================================================
--- guile.nanorc (revision 0)
+++ guile.nanorc (working copy)
@@ -0,0 +1,25 @@
+## Here is an example for Guile scheme.
+
+syntax "guile" "\.scm$"
+header "^#!.*guile"
+magic "guile"
+
+# Basic scheme functions
+color green "\<(let|letrec|if|when|unless|lambda|map|do)\>"
+# Defining things
+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:]]);.*$"