Merge pull request #51 from michaellopez/bad-regex-fix

Fixed for bad regex. From justinribeiro/nanorc@449447fffe
This commit is contained in:
Anthony Scopatz 2015-04-26 13:38:24 -07:00
commit 57f37d5428
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_!@#$*?-]+\}?"