about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx.nanorc16
1 files changed, 16 insertions, 0 deletions
diff --git a/subx.nanorc b/subx.nanorc
new file mode 100644
index 00000000..9ac8c92a
--- /dev/null
+++ b/subx.nanorc
@@ -0,0 +1,16 @@
+# include this file in your ~/.nanorc
+
+syntax "subx" "\.subx$"
+# function definitions
+color yellow "^[a-z][^ ]*:"
+# global variables
+color red "^[A-Z][^ ]*:"
+# tests
+color green "^test-[^ ]*:"
+# strings literals
+color cyan ""([^"\]|\\.)+""
+# comments
+comment "#"
+color brightblue "# - .*"
+color blue "#.*$"
+color brightblack "# \. .*"