1
0
mirror of https://github.com/scopatz/nanorc synced 2024-09-28 17:09:50 +02:00
This commit is contained in:
Michael Lopez 2015-04-21 09:00:55 +02:00
parent c8874a7102
commit da811ad87e
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ 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 brightgreen "^\s+?[0-9A-Z_]+\s+?\(\)"
icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$"

View File

@ -1,5 +1,5 @@
## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc)
syntax "zsh" "\.?zsh[^\.]+?$"
syntax "zsh" "\.zsh[^\.]+$"
header "^#!.*/(env +)?zsh( |$)"
## Numbers
@ -20,7 +20,7 @@ color brightblue "\<(add-zsh-hook|autoload|compinit|echotc|emulate|print|prompt(
color brightmagenta "\<(cat|chmod|chown|cp|cut|echo|env|false|find|grep|head|install|kill|less|ln|make|mkdir|mv|nice|pwd|rm|rmdir|sed|tar|true|touch|uname|wc|whoami)\>"
## Function definition
icolor brightgreen "^\s+?(function\s+)?[0-9A-Z_]+\s+?\(\)"
icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)"
## Variables
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"