84
|
1 ## Here is an example for c-shell scripts.
|
|
2 ##
|
|
3 syntax "CSH" "\.csh$" "\.tcshrc" "\.cshrc" "\.login" "\.logout" "\.history"
|
|
4 header "^#!.*/(env +)?(t)?csh( |$)"
|
|
5
|
|
6 color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|exit|foreach|goto|if|repeat|shift|switch|then|while)\>"
|
|
7 color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|
8 color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>"
|
|
9 color green "-(A\:|M\:|U\:|G\:)\>"
|
|
10 color brightblue "\<(alias|bindkey|cat|cd|chmod|chown|complete|cp|echo|env|grep|install|ln|make|mkdir|mv|printenv|rm|sed|set|setenv|tar|touch|umask|unalias|uncomplete|unset|unsetenv)\>"
|
|
11 icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
|
|
12 icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
|
13 color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
|
14 color cyan "(^|[[:space:]])#.*$"
|
|
15 color ,green "[[:space:]]+$"
|