summaryrefslogtreecommitdiff
path: root/doc/syntax/sh.nanorc
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2010-11-22 11:34:29 +0000
committer <>2013-04-03 16:08:29 +0000
commit8b74abeb02c01ddc768c465a826360cf33cec063 (patch)
tree8047ac5b4a29496a9417d019641156e9cb1f9797 /doc/syntax/sh.nanorc
downloadnano-tarball-8b74abeb02c01ddc768c465a826360cf33cec063.tar.gz
Imported from /home/lorry/working-area/delta_nano-tarball/nano-2.2.6.tar.gz.nano-2.2.6baserock/morph
Diffstat (limited to 'doc/syntax/sh.nanorc')
-rw-r--r--doc/syntax/sh.nanorc14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/syntax/sh.nanorc b/doc/syntax/sh.nanorc
new file mode 100644
index 0000000..ecce22e
--- /dev/null
+++ b/doc/syntax/sh.nanorc
@@ -0,0 +1,14 @@
+## Here is an example for Bourne shell scripts.
+##
+syntax "sh" "\.sh$"
+header "^#!.*/(ba|k|pdk)?sh[-0-9_]*"
+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:]]+$"