'main': Update comments after last commit. No functional change.
This commit is contained in:
parent
e5acdf0ba5
commit
023c994cdf
|
@ -545,11 +545,11 @@ _zsh_highlight_main_highlighter_highlight_list()
|
||||||
|
|
||||||
if [[ $this_word == *:start:* ]] && ! (( in_redirection )); then
|
if [[ $this_word == *:start:* ]] && ! (( in_redirection )); then
|
||||||
# Expand aliases.
|
# Expand aliases.
|
||||||
|
# An alias is ineligible for expansion while it's being expanded (see #652/#653).
|
||||||
_zsh_highlight_main__type "$arg" "$(( ! ${+seen_alias[$arg]} ))"
|
_zsh_highlight_main__type "$arg" "$(( ! ${+seen_alias[$arg]} ))"
|
||||||
local res="$REPLY"
|
local res="$REPLY"
|
||||||
if [[ $res == "alias" ]]; then
|
if [[ $res == "alias" ]]; then
|
||||||
# Avoid looping forever on alias a=b b=c c=b, but allow alias foo='foo bar'
|
# Mark insane aliases as unknown-token (cf. #263).
|
||||||
# Also mark insane aliases as unknown-token (cf. #263).
|
|
||||||
if [[ $arg == ?*=* ]]; then
|
if [[ $arg == ?*=* ]]; then
|
||||||
(( in_alias == 0 )) && in_alias=1
|
(( in_alias == 0 )) && in_alias=1
|
||||||
_zsh_highlight_main_add_region_highlight $start_pos $end_pos unknown-token
|
_zsh_highlight_main_add_region_highlight $start_pos $end_pos unknown-token
|
||||||
|
|
Loading…
Reference in New Issue
Block a user