tests: Add test for escape sequences in double-quoted strings
This commit is contained in:
		
							parent
							
								
									51102bf83f
								
							
						
					
					
						commit
						0d3a5dadea
					
				|  | @ -28,10 +28,19 @@ | ||||||
| # vim: ft=zsh sw=2 ts=2 et | # vim: ft=zsh sw=2 ts=2 et | ||||||
| # ------------------------------------------------------------------------------------------------- | # ------------------------------------------------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
| BUFFER=': "foo$bar"' | BUFFER=': "foo$bar:\`:\":\$:' | ||||||
|  | BUFFER+=\\\':\" | ||||||
| 
 | 
 | ||||||
| expected_region_highlight=( | expected_region_highlight=( | ||||||
|   "3 6 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # "foo |   "3 6 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # "foo | ||||||
|   "7 10 $ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]" # $bar |   "7 10 $ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]" # $bar | ||||||
|   "11 11 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # " |   "11 11 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # : | ||||||
|  |   "12 13 $ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]" # \` | ||||||
|  |   "14 14 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # : | ||||||
|  |   "15 16 $ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]" # \$ | ||||||
|  |   "17 17 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # : | ||||||
|  |   "18 19 $ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]" # \" | ||||||
|  |   "20 20 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # : | ||||||
|  |   "21 22 $ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]" # \' | ||||||
|  |   "23 24 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # :" | ||||||
| ) | ) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue