mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-09-18 08:20:18 +00:00
'main': Escape '!' within double-quoted strings.
This commit is contained in:
@@ -810,7 +810,7 @@ _zsh_highlight_main_highlighter_highlight_string()
|
||||
fi
|
||||
;;
|
||||
"\\") style=back-double-quoted-argument
|
||||
if [[ \\\`\"\$ == *$arg[$i+1]* ]]; then
|
||||
if [[ \\\`\"\$${histchars[1]} == *$arg[$i+1]* ]]; then
|
||||
(( k += 1 )) # Color following char too.
|
||||
(( i += 1 )) # Skip parsing the escaped char.
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user