diff --git a/highlighters/brackets/README.md b/highlighters/brackets/README.md index b0a3d30..9fd4f96 100644 --- a/highlighters/brackets/README.md +++ b/highlighters/brackets/README.md @@ -17,6 +17,7 @@ This highlighter defines the following styles: * `bracket-error` - unmatched brackets * `bracket-level-N` - brackets with nest level N +* `cursor-matchingbracket` - the matching bracket, if cursor is on a bracket To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`: diff --git a/highlighters/brackets/test-data/nested-parentheses.zsh b/highlighters/brackets/test-data/nested-parentheses.zsh index 08fe1fb..68683e5 100644 --- a/highlighters/brackets/test-data/nested-parentheses.zsh +++ b/highlighters/brackets/test-data/nested-parentheses.zsh @@ -28,7 +28,7 @@ # vim: ft=zsh sw=2 ts=2 et # ------------------------------------------------------------------------------------------------- -BUFFER='echo $(echo x{(z)array})' +BUFFER='echo $(echo ${(z)array})' expected_region_highlight=( "6 6 $ZSH_HIGHLIGHT_STYLES[bracket-level-1]" # (