mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
03822157ac
6 changed files with 96 additions and 20 deletions
|
|
@ -131,7 +131,7 @@ _zsh_highlight_main_highlighter()
|
|||
style=$ZSH_HIGHLIGHT_STYLES[command_prefix]
|
||||
elif _zsh_highlight_main_highlighter_check_path; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[path]
|
||||
elif [[ $arg[0,1] = $histchars[0,1] ]]; then
|
||||
elif [[ $arg[0,1] == $histchars[0,1] || $arg[0,1] == $histchars[2,2] ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
|
||||
else
|
||||
style=$ZSH_HIGHLIGHT_STYLES[unknown-token]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue