Courses/BASH: sh.nanorc

File sh.nanorc, 654 bytes (added by Lennart Johansson, 8 years ago)

sh.nanorc: file to enable syntax highlighting for bash in nano

Line 
1## Here is an example for Bourne shell scripts.
2##
3syntax "sh" "\.sh$"
4icolor brightgreen "^[0-9A-Z_]+\(\)"
5color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
6color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
7color green "-[Ldefgruwx]\>"
8color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
9color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
10icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
11color cyan "(^|[[:space:]])#.*$"
12color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
13color ,green "[[:space:]]+$"