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