2010-07-29 00:15:43 +02:00
|
|
|
## Here is an example for Bourne shell scripts.
|
|
|
|
##
|
2017-01-03 23:07:03 +01:00
|
|
|
syntax "SH" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile" "revise\..+$"
|
2014-08-03 00:25:00 +02:00
|
|
|
header "^#!.*/(env +)?(ba)?sh( |$)"
|
|
|
|
|
2010-07-29 00:15:43 +02:00
|
|
|
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)\>"
|
2018-08-09 10:09:19 +02:00
|
|
|
color blue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
|
|
|
|
icolor green "^\s+[0-9A-Z_]+\s+\(\)"
|
|
|
|
icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
|
|
|
color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
2014-08-03 00:25:00 +02:00
|
|
|
color cyan "(^|[[:space:]])#.*$"
|
2016-06-12 18:48:32 +02:00
|
|
|
color ,green "[[:space:]]+$"
|