]> git.lizzy.rs Git - micro.git/blob - syntax_files/sh.micro
Proper window resize handling
[micro.git] / syntax_files / sh.micro
1 ## Here is an example for Bourne shell scripts.
2 ##
3 syntax "SH" "\.sh$" "\.bash" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile"
4 header "^#!.*/(env +)?(ba)?sh( |$)"
5
6 color statement "\b(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\b"
7 color special "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
8 color special "-[Ldefgruwx]\b"
9 color statement "-(eq|ne|gt|lt|ge|le|s|n|z)\b"
10 color statement "\b(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\b"
11 color color constant (i) "^\s+[0-9A-Z_]+\s+\(\)"
12 color color constant (i) "\$\{?[0-9A-Z_!@#$*?-]+\}?"
13 color constant ""(\\.|[^"])*"" "'(\\.|[^'])*'"
14 color comment "(^|[[:space:]])#.*$"
15 #color ,green "[[:space:]]+$"