command word: Highlight more reserved words. Part of issue #207.
This commit is contained in:
		
							parent
							
								
									2218e26bf8
								
							
						
					
					
						commit
						c216242b46
					
				|  | @ -99,13 +99,18 @@ _zsh_highlight_main_highlighter() | ||||||
|   ) |   ) | ||||||
| 
 | 
 | ||||||
|   # Tokens that, at (naively-determined) "command position", are followed by |   # Tokens that, at (naively-determined) "command position", are followed by | ||||||
|   # a de jure command position. |   # a de jure command position.  All of these are reserved words. | ||||||
|   ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW=( |   ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW=( | ||||||
|     'while' |     'while' | ||||||
|  |     'until' | ||||||
|     'if' |     'if' | ||||||
|     'then' |     'then' | ||||||
|  |     'elif' | ||||||
|     'else' |     'else' | ||||||
|     'do' |     'do' | ||||||
|  |     'time' | ||||||
|  |     'coproc' | ||||||
|  |     '!' # reserved word; unrelated to $histchars[1] | ||||||
|   ) |   ) | ||||||
| 
 | 
 | ||||||
|   # State machine |   # State machine | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue