comparison nanorc.d/sh.nanorc @ 84:b989099cde9f

Start to update Nano colourisation Defaults are REALLY basic
author IBBoard <dev@ibboard.co.uk>
date Sat, 31 Mar 2018 21:06:21 +0100
parents
children
comparison
equal deleted inserted replaced
83:966d8f8f89d0 84:b989099cde9f
1 ## Here is an example for Bourne shell scripts.
2 ##
3 syntax "SH" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile" "revise\..+$"
4 header "^#!.*/(env +)?(ba)?sh( |$)"
5
6 color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
7 color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
8 color green "-[Ldefgruwx]\>"
9 color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
10 color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
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:]]+$"