2006-06-01 17:23:28 +00:00
|
|
|
## Here is an example for Bourne shell scripts.
|
|
|
|
##
|
|
|
|
syntax "sh" "\.sh$"
|
2009-08-18 02:55:22 +00:00
|
|
|
header "^#!.*/(ba|k|pdk)?sh[-0-9_]*"
|
2006-06-01 17:23:28 +00: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)\>"
|
2006-06-03 12:41:02 +00:00
|
|
|
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
2006-06-08 12:49:57 +00:00
|
|
|
color cyan "(^|[[:space:]])#.*$"
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
2007-04-11 22:18:16 +00:00
|
|
|
color ,green "[[:space:]]+$"
|