about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-28 19:15:27 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-28 19:16:24 -0800
commitecd1a406e67cc2b8af9d9fe716c4af81fe8fa3b8 (patch)
treea76be82d255729e48ff0628921fe9d848ea807dd
parentdc6bd625f2ac8e67b7507431ab4fa6f72e5fd5bb (diff)
downloadmu-ecd1a406e67cc2b8af9d9fe716c4af81fe8fa3b8.tar.gz
5840 - syntax highlighting for nano (!!)
-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 "# \. .*"