Skip to content

Add instructions about initializing variable #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/highlighters/pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ To use this highlighter, associate patterns with styles in the

The syntax for values is the same as the syntax of "types of highlighting" of
the zsh builtin `$zle_highlight` array, which is documented in [the `zshzle(1)`
manual page][zshzle-Character-Highlighting].
manual page][zshzle-Character-Highlighting]. Note: if you would like to define this
variable before you source zsh-syntax-highlighting, you will need to declare it first with:
`typeset -gA ZSH_HIGHLIGHT_PATTERNS`.

[zshzle-Character-Highlighting]: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting