mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 08:35:39 +01:00
Merge pull request #51 from michaellopez/bad-regex-fix
Fixed for bad regex. From justinribeiro/nanorc@449447fffe
This commit is contained in:
commit
57f37d5428
@ -8,7 +8,7 @@ color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|||||||
color green "-[Ldefgruwx]\>"
|
color green "-[Ldefgruwx]\>"
|
||||||
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
|
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)\>"
|
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_!@#$*?-]+\}?"
|
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
||||||
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
||||||
color cyan "(^|[[:space:]])#.*$"
|
color cyan "(^|[[:space:]])#.*$"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc)
|
## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc)
|
||||||
syntax "zsh" "\.?zsh[^\.]+?$"
|
syntax "zsh" "\.zsh[^\.]+$"
|
||||||
header "^#!.*/(env +)?zsh( |$)"
|
header "^#!.*/(env +)?zsh( |$)"
|
||||||
|
|
||||||
## Numbers
|
## 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)\>"
|
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
|
## Function definition
|
||||||
icolor brightgreen "^\s+?(function\s+)?[0-9A-Z_]+\s+?\(\)"
|
icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)"
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
||||||
|
Loading…
Reference in New Issue
Block a user