zsh-syntax-highlighting/highlighters
Robert Estelle efba5b1220 Avoid warning under setopt warn_nested_var
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.
2020-05-03 12:52:34 -07:00
..
brackets tests: Directly diff expected_region_highlight against region_highlight 2018-02-10 14:49:07 -06:00
cursor *: Change highlighters' namespace. 2016-08-16 17:53:01 +00:00
line highlighters: Rename entry points. 2016-08-16 17:51:43 +00:00
main Avoid warning under setopt warn_nested_var 2020-05-03 12:52:34 -07:00
pattern highlighters: Rename entry points. 2016-08-16 17:51:43 +00:00
regexp regexp: Add test for subexpression match 2018-02-11 09:58:00 -06:00
root highlighters: Rename entry points. 2016-08-16 17:51:43 +00:00
README.md docs: Followup to the recent docs branch: clean up some internal cross-references. 2015-11-27 04:07:02 +00:00

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.