mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2025-01-20 17:40:42 +00:00
Followup to last: tighten the fix and ask a question.
This commit is contained in:
parent
2c9f8c8c95
commit
018bc45f21
@ -261,8 +261,12 @@ _zsh_highlight_main_highlighter()
|
||||
# if a style_override was set (eg in _zsh_highlight_main_highlighter_check_path), use it
|
||||
[[ -n $style_override ]] && style=$ZSH_HIGHLIGHT_STYLES[$style_override]
|
||||
(( already_added )) || _zsh_highlight_main_add_region_highlight $start_pos $end_pos $style
|
||||
if [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR:#"$arg"} ]] ||
|
||||
if [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR:#"$arg"} ]]; then
|
||||
# TODO maybe check *':regular:'* here?
|
||||
next_word=':start:'
|
||||
elif
|
||||
[[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS:#"$arg"} && $this_word == *':start:' ]]; then
|
||||
# TODO should this be '=' or '+=' ? $next_word is probably :regular: and nothing looks for that value.
|
||||
next_word+=':start:'
|
||||
fi
|
||||
[[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR:#"$arg"} ]] && highlight_glob=true
|
||||
|
Loading…
Reference in New Issue
Block a user