mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Fix syntax error with zsh-5.0.5-dev-1 and older.
zsh prior to workers/32609 (commit 9d47e8398d299e53ffe4e7ddf3731d2fedae9948) does not support the (-n)-less «[[ $var ]]» syntax. Fixes zsh-users/zsh-syntax-highlighting#225.
This commit is contained in:
parent
afa6bb3882
commit
8ab8c815ec
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ _zsh_highlight_main_highlighter()
|
|||
((end_pos=$start_pos+${#arg}))
|
||||
fi
|
||||
|
||||
if [[ ${interactive_comments+'set'} && $arg[1] == $histchars[3] ]]; then
|
||||
if [[ -n ${interactive_comments+'set'} && $arg[1] == $histchars[3] ]]; then
|
||||
if [[ $this_word == *(':regular:'|':start:')* ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[comment]
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue