From ecd1a406e67cc2b8af9d9fe716c4af81fe8fa3b8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 28 Dec 2019 19:15:27 -0800 Subject: 5840 - syntax highlighting for nano (!!) --- subx.nanorc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 subx.nanorc 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 "# \. .*" -- cgit 1.4.1-2-gfad0