mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
![]() Previously in a shell running with `setopt warn_nested_var`, the following warning would be produced: > ``` > _zsh_highlight_main__precmd_hook:1: array parameter _zsh_highlight_main__command_type_cache set in enclosing scope in function _zsh_highlight_main__precmd_hook > ``` The documentation for `WARN_NESTED_VAR` is: > Print a warning message when an existing parameter from an enclosing > function scope, or global, is set in a function by an assignment or in > math context. […] Where possible, use of `typeset -g` to set the parame- > ter suppresses the error, but note that this needs to be used every time > the parameter is set. |
||
---|---|---|
.. | ||
brackets | ||
cursor | ||
line | ||
main | ||
pattern | ||
regexp | ||
root | ||
README.md |
zsh-syntax-highlighting / highlighters
Navigate into the individual highlighters' documentation to see
what styles ($ZSH_HIGHLIGHT_STYLES
keys) each highlighter defines.
Refer to the documentation on highlighters for further information.