mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-10-30 15:56:28 +08:00 
			
		
		
		
	highlight ^old^new pattern
by extending the already in place mechanism of checking for the first histchar to check for the second as well
This commit is contained in:
		
							parent
							
								
									f289a9f8e7
								
							
						
					
					
						commit
						04f9c8884f
					
				| @ -128,7 +128,7 @@ _zsh_highlight_main_highlighter() | |||||||
|                           new_expression=true |                           new_expression=true | ||||||
|                         elif _zsh_highlight_main_highlighter_check_path; then |                         elif _zsh_highlight_main_highlighter_check_path; then | ||||||
|                           style=$ZSH_HIGHLIGHT_STYLES[path] |                           style=$ZSH_HIGHLIGHT_STYLES[path] | ||||||
|                         elif [[ $arg[0,1] = $histchars[0,1] ]]; then |                         elif [[ $arg[0,1] == $histchars[0,1] || $arg[0,1] == $histchars[2,2] ]]; then | ||||||
|                           style=$ZSH_HIGHLIGHT_STYLES[history-expansion] |                           style=$ZSH_HIGHLIGHT_STYLES[history-expansion] | ||||||
|                         else |                         else | ||||||
|                           style=$ZSH_HIGHLIGHT_STYLES[unknown-token] |                           style=$ZSH_HIGHLIGHT_STYLES[unknown-token] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 sonnym
						sonnym