main: Move TOKENS_CONTROL_FLOW handling into command word branch
No functional change.
This commit is contained in:
		
							parent
							
								
									dea05e44e6
								
							
						
					
					
						commit
						5bb5703b0d
					
				|  | @ -788,6 +788,9 @@ _zsh_highlight_main_highlighter_highlight_list() | ||||||
|                         ;; |                         ;; | ||||||
|       esac |       esac | ||||||
|      fi |      fi | ||||||
|  |      if [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW:#"$arg"} ]]; then | ||||||
|  |       next_word=':start:' | ||||||
|  |      fi | ||||||
|    else # $arg is a non-command word |    else # $arg is a non-command word | ||||||
|       case $arg in |       case $arg in | ||||||
|         $'\x29') # subshell or end of array assignment |         $'\x29') # subshell or end of array assignment | ||||||
|  | @ -854,9 +857,6 @@ _zsh_highlight_main_highlighter_highlight_list() | ||||||
|         next_word=':start:' |         next_word=':start:' | ||||||
|         highlight_glob=true |         highlight_glob=true | ||||||
|       fi |       fi | ||||||
|     elif |  | ||||||
|        [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW:#"$arg"} && $this_word == *':start:'* ]]; then |  | ||||||
|       next_word=':start:' |  | ||||||
|     fi |     fi | ||||||
|   done |   done | ||||||
|   REPLY=$(( end_pos - 1 )) |   REPLY=$(( end_pos - 1 )) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue