about summary refs log tree commit diff stats
path: root/editor/subx.nanorc
diff options
context:
space:
mode:
Diffstat (limited to 'editor/subx.nanorc')
-rw-r--r--editor/subx.nanorc16
1 files changed, 16 insertions, 0 deletions
diff --git a/editor/subx.nanorc b/editor/subx.nanorc
new file mode 100644
index 00000000..9ac8c92a
--- /dev/null
+++ b/editor/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 "# \. .*"