From 8ce26e04a06e3336f08ee5eb6dd20858b4f9ae92 Mon Sep 17 00:00:00 2001 From: Nicholas Christopoulos Date: Sun, 16 Jul 2017 04:26:56 +0200 Subject: [PATCH 1/2] Create csh.nanorc --- csh.nanorc | 1 + 1 file changed, 1 insertion(+) create mode 100644 csh.nanorc diff --git a/csh.nanorc b/csh.nanorc new file mode 100644 index 0000000..792d600 --- /dev/null +++ b/csh.nanorc @@ -0,0 +1 @@ +# From 45bd12d619935853abf4719522017e3401e1aa4e Mon Sep 17 00:00:00 2001 From: Nicholas Christopoulos Date: Sun, 16 Jul 2017 05:27:32 +0300 Subject: [PATCH 2/2] Add files via upload [t]csh added --- csh.nanorc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/csh.nanorc b/csh.nanorc index 792d600..da13126 100644 --- a/csh.nanorc +++ b/csh.nanorc @@ -1 +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:]]+$"