mirror of
https://github.com/scopatz/nanorc
synced 2024-11-24 11:20:26 +01:00
b19f77feef
- Removed "makefile" (it has its own highlighting) - Added header filter to detect files without an extension - Added .bash_functions as a "known file"
15 lines
798 B
Plaintext
15 lines
798 B
Plaintext
## Here is an example for Bourne shell scripts.
|
|
##
|
|
syntax "sh" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile"
|
|
header "^#!.*/(ba)?sh"
|
|
icolor brightgreen "^[0-9A-Z_]+\(\)"
|
|
color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
|
|
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|
color green "-[Ldefgruwx]\>"
|
|
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
|
|
color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
|
|
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
|
color cyan "(^|[[:space:]])#.*$"
|
|
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
|
#color ,green "[[:space:]]+$"
|