summaryrefslogtreecommitdiff
path: root/doc/syntax/sh.nanorc
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-05 12:55:17 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-05 12:55:17 -0800
commit176336f2dedded583aa8d775e6f97ad25a293aa5 (patch)
tree35155f4aedb601ee1f5895b1e5aaa693c12d94df /doc/syntax/sh.nanorc
downloadnano-176336f2dedded583aa8d775e6f97ad25a293aa5.tar.gz
nano-176336f2dedded583aa8d775e6f97ad25a293aa5.tar.bz2
nano-176336f2dedded583aa8d775e6f97ad25a293aa5.zip
Imported Upstream version 2.3.1upstream/2.3.1upstream
Diffstat (limited to 'doc/syntax/sh.nanorc')
-rw-r--r--doc/syntax/sh.nanorc15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/syntax/sh.nanorc b/doc/syntax/sh.nanorc
new file mode 100644
index 0000000..f660105
--- /dev/null
+++ b/doc/syntax/sh.nanorc
@@ -0,0 +1,15 @@
+## Here is an example for Bourne shell scripts.
+##
+syntax "sh" "\.sh$"
+magic "(POSIX|Bourne.*) shell script text"
+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:]]+$"