Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serialhex/nano-highlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Patera <serialhex@gmail.com>2011-06-05 22:51:00 +0400
committerJustin Patera <serialhex@gmail.com>2011-06-05 22:51:00 +0400
commitbf4f2e23c4c888c289b21abb1e925c37d3487fa3 (patch)
tree648a06b48d8b595c1a310059561699f3fddecd34 /sh.nanorc
initil commit, mostly not my stuff, read the README for attribution
Diffstat (limited to 'sh.nanorc')
-rw-r--r--sh.nanorc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sh.nanorc b/sh.nanorc
new file mode 100644
index 0000000..f540f1b
--- /dev/null
+++ b/sh.nanorc
@@ -0,0 +1,13 @@
+## Here is an example for Bourne shell scripts.
+##
+syntax "sh" "\.sh$"
+icolor brightgreen "^[0-9A-Z_]+\(\)"
+color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
+color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color green "-[Ldefgruwx]\>"
+color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
+icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
+color cyan "(^|[[:space:]])#.*$"
+color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+color ,green "[[:space:]]+$"