mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-12-14 15:34:37 +00:00
noop: Restructure code for clarity.
The structure now mirrors the stall construct at the top of the loop.
This commit is contained in:
parent
d1c773faa7
commit
6e2ef574c8
@ -546,7 +546,12 @@ _zsh_highlight_main_highlighter()
|
||||
this_word=':start::regular:'
|
||||
fi
|
||||
start_pos=$end_pos
|
||||
(( in_redirection == 0 )) && this_word=$next_word
|
||||
if (( in_redirection == 0 )); then
|
||||
# This is the default/common codepath.
|
||||
this_word=$next_word
|
||||
else
|
||||
# Stall $this_word.
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user