1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-25 01:45:39 +01:00
nanorc/sh.nanorc

14 lines
666 B
Plaintext
Raw Normal View History

2010-07-29 00:15:43 +02:00
## Here is an example for Bourne shell scripts.
##
2010-08-30 17:10:34 +02:00
syntax "sh" "\.sh$" "Makefile"
2010-07-29 00:15:43 +02:00
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:]]+$"