File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -698,14 +698,24 @@ _zsh_highlight_main_highlighter_highlight_list()
698698 if (( ! in_redirection )) ; then
699699 if [[ $this_word == * ' :sudo_opt:' * ]]; then
700700 if [[ -n $flags_with_argument ]] &&
701- { [[ -n $flags_sans_argument ]] && [[ $arg == ' -' [$flags_sans_argument ]# [$flags_with_argument] ]] ||
702- [[ $arg == ' -' [$flags_with_argument ] ]] }; then
701+ {
702+ # Trenary
703+ if [[ -n $flags_sans_argument ]]
704+ then [[ $arg == ' -' [$flags_sans_argument ]# [$flags_with_argument] ]]
705+ else [[ $arg == ' -' [$flags_with_argument ] ]]
706+ fi
707+ } then
703708 # Flag that requires an argument
704709 this_word= ${this_word//: start:/ }
705710 next_word= ' :sudo_arg:'
706711 elif [[ -n $flags_with_argument ]] &&
707- { [[ -n $flags_sans_argument ]] && [[ $arg == ' -' [$flags_sans_argument ]# [$flags_with_argument]* ]] ||
708- [[ $arg == ' -' [$flags_with_argument ]* ]] }; then
712+ {
713+ # Trenary
714+ if [[ -n $flags_sans_argument ]]
715+ then [[ $arg == ' -' [$flags_sans_argument ]# [$flags_with_argument]* ]]
716+ else [[ $arg == ' -' [$flags_with_argument ]* ]]
717+ fi
718+ } then
709719 # Argument attached in the same word
710720 this_word= ${this_word//: start:/ }
711721 next_word+= ' :start:'
You can’t perform that action at this time.
0 commit comments