Merge pull request #154 from nereusx/master

[t]csh syntax
This commit is contained in:
Anthony Scopatz 2017-07-16 10:09:47 -05:00 committed by GitHub
commit 43dd59ad36
1 changed files with 15 additions and 0 deletions

15
csh.nanorc Normal file
View File

@ -0,0 +1,15 @@
## Here is an example for c-shell scripts.
##
syntax "CSH" "\.csh$" "\.tcshrc" "\.cshrc" "\.login" "\.logout" "\.history"
header "^#!.*/(env +)?(t)?csh( |$)"
color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|exit|foreach|goto|if|repeat|shift|switch|then|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>"
color green "-(A\:|M\:|U\:|G\:)\>"
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)\>"
icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$"