2010-07-29 00:15:43 +02:00
|
|
|
## Here is an example for Bourne shell scripts.
|
|
|
|
##
|
2014-06-22 01:02:33 +02:00
|
|
|
syntax "sh" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile"
|
2014-07-16 13:37:23 +02:00
|
|
|
header "^#!.*/(env +)?(ba)?sh( |$)"
|
|
|
|
|
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 brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
2014-07-16 13:02:20 +02:00
|
|
|
color cyan "(^|[[:space:]])#.*$"
|
2010-07-29 00:15:43 +02:00
|
|
|
#color ,green "[[:space:]]+$"
|