mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-23 17:27:14 +09:00
Add syntax highlighting files
This commit is contained in:
15
syntax_files/sh.micro
Normal file
15
syntax_files/sh.micro
Normal file
@@ -0,0 +1,15 @@
|
||||
## Here is an example for Bourne shell scripts.
|
||||
##
|
||||
syntax "SH" "\.sh$" "\.bash" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile"
|
||||
header "^#!.*/(env +)?(ba)?sh( |$)"
|
||||
|
||||
color green "\b(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\b"
|
||||
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
||||
color green "-[Ldefgruwx]\b"
|
||||
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\b"
|
||||
color brightblue "\b(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\b"
|
||||
icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
|
||||
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
||||
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
||||
color cyan "(^|[[:space:]])#.*$"
|
||||
#color ,green "[[:space:]]+$"
|
||||
Reference in New Issue
Block a user