Skip to content

Commit 7af5ca9

Browse files
committed
main: Support the glob_assign option
1 parent c1c78dc commit 7af5ca9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

highlighters/main/main-highlighter.zsh

+5-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,11 @@ _zsh_highlight_main_highlighter_XXX()
620620
# (For array assignments, the command doesn't start until the ")" token.)
621621
next_word+=':start:'
622622
if (( i <= end_pos )); then
623-
highlight_glob=false _zsh_highlight_main_highlighter_highlight_argument $i
623+
() {
624+
local highlight_glob=false
625+
[[ $zsyh_user_options[globassign] == on ]] && highlight_glob=true
626+
_zsh_highlight_main_highlighter_highlight_argument $i
627+
}
624628
fi
625629
fi
626630
elif [[ $arg[0,1] = $histchars[0,1] ]] && (( $#arg[0,2] == 2 )); then

0 commit comments

Comments
 (0)