mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
main: Support the glob_assign option
This commit is contained in:
parent
9616bfdb20
commit
472c71c1fa
1 changed files with 5 additions and 1 deletions
|
|
@ -620,7 +620,11 @@ _zsh_highlight_main_highlighter_highlight_list()
|
||||||
# (For array assignments, the command doesn't start until the ")" token.)
|
# (For array assignments, the command doesn't start until the ")" token.)
|
||||||
next_word+=':start:'
|
next_word+=':start:'
|
||||||
if (( start_pos + i <= end_pos )); then
|
if (( start_pos + i <= end_pos )); then
|
||||||
highlight_glob=false _zsh_highlight_main_highlighter_highlight_argument $i
|
() {
|
||||||
|
local highlight_glob=false
|
||||||
|
[[ $zsyh_user_options[globassign] == on ]] && highlight_glob=true
|
||||||
|
_zsh_highlight_main_highlighter_highlight_argument $i
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ $arg[0,1] = $histchars[0,1] ]] && (( $#arg[0,2] == 2 )); then
|
elif [[ $arg[0,1] = $histchars[0,1] ]] && (( $#arg[0,2] == 2 )); then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue