mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-06 09:55:31 +08:00
Group if statements in f26310d97e
This commit is contained in:
parent
f26310d97e
commit
e7d7ccfe35
4
highlighters/main/main-highlighter.zsh
Normal file → Executable file
4
highlighters/main/main-highlighter.zsh
Normal file → Executable file
@ -138,9 +138,7 @@ _zsh_highlight_main_highlighter_check_path()
|
||||
[[ -z ${(Q)arg} ]] && return 1
|
||||
[[ -e ${(Q)arg} ]] && return 0
|
||||
[[ ! -e ${(Q)arg:h} ]] && return 1
|
||||
if [[ ${BUFFER[1]} != "-" ]]; then
|
||||
[[ ${#BUFFER} == $end_pos && -n $(print ${(Q)arg}*(N)) ]] && return 0
|
||||
fi
|
||||
[[ ${BUFFER[1]} != "-" && ${#BUFFER} == $end_pos && -n $(print ${(Q)arg}*(N)) ]] && return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user