mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-10-30 15:56:28 +08:00 
			
		
		
		
	main: Shift args rather than iterating over
No functional change. Prepares for running a full alias through the state machine.
This commit is contained in:
		
							parent
							
								
									6898f71016
								
							
						
					
					
						commit
						b9d7fe5a43
					
				| @ -400,9 +400,11 @@ _zsh_highlight_main_highlighter_highlight_list() | |||||||
|   else |   else | ||||||
|     args=(${(z)buf}) |     args=(${(z)buf}) | ||||||
|   fi |   fi | ||||||
|   for arg in $args; do |   while (( $#args )); do | ||||||
|     # Save an unmunged copy of the current word. |     # Save an unmunged copy of the current word. | ||||||
|  |     arg=$args[1] | ||||||
|     arg_raw="$arg" |     arg_raw="$arg" | ||||||
|  |     shift args | ||||||
| 
 | 
 | ||||||
|     # Initialize this_word and next_word. |     # Initialize this_word and next_word. | ||||||
|     if (( in_redirection == 0 )); then |     if (( in_redirection == 0 )); then | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Matthew Martin
						Matthew Martin