This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / sh.nanorc
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_login" "\.bash_logout" "\.bash_profile" "bash_profile" "\.profile" "revise\..+$"
4 header "^#!.*/(env +)?(ba)?sh( |$)"
5 magic "(POSIX|Bourne-Again) shell script.*text"
6 comment "#"
7
8 linter dash -n
9
10 ## keywords:
11 color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>"
12 color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
13 color green "-[Ldefgruwx]\>"
14 color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
15 ## builtins:
16 color brightblue "\<(alias|bg|bind|break|builtin|caller|cd|command|compgen|complete|compopt|continue|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|mapfile|popd|printf|pushd|pwd|read|readarray|readonly|return|set|shift|shopt|source|suspend|test|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)\>"
17 ## not buitins:
18 ## cat|chmod|chown|cp|env|grep|install|ln|make|mkdir|mv|rm|sed|tar|touch
19 icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
20 icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
21 color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
22 color cyan "(^|[[:space:]])#.*$"
23 color ,green "[[:space:]]+$"