docs: regexp highlighter: Fix a wrong associative array name in the example.

Factored out from #747.
This commit is contained in:
Nuri Jung 2020-07-01 21:38:38 +09:00 committed by Daniel Shahaf
parent 91d2eeaf23
commit fb929edc30

View File

@ -11,7 +11,7 @@ To use this highlighter, associate regular expressions with styles in the
`ZSH_HIGHLIGHT_REGEXP` associative array, for example in `~/.zshrc`:
```zsh
typeset -A ZSH_HIGHLIGHT_PATTERNS
typeset -A ZSH_HIGHLIGHT_REGEXP
ZSH_HIGHLIGHT_REGEXP+=('\bsudo\b' fg=123,bold)
```