mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-11 22:02:31 +01:00
merging with upstream master
This commit is contained in:
commit
6e679ca300
6 changed files with 96 additions and 20 deletions
|
|
@ -134,7 +134,7 @@ _zsh_highlight_main_highlighter()
|
|||
elif _zsh_highlight_main_highlighter_check_path; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[path]
|
||||
path_found=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