main: Do not skip over backslash floowed by space or tab

Fixes #539.
This commit is contained in:
Matthew Martin
2018-09-29 21:29:45 -04:00
parent 1eedb23c65
commit 2fd7fbc3c2
2 changed files with 40 additions and 1 deletions

View File

@@ -384,7 +384,7 @@ _zsh_highlight_highlighter_main_paint()
# - what's after main minus sign is: length of proc_buf without spaces at the beginning
# - so what the line actually did, was computing length of the spaces!
# - this can be done via (#b) flag, like below
if [[ "$proc_buf" = (#b)(#s)(([[:space:]]|\\[[:space:]])##)* ]]; then
if [[ "$proc_buf" = (#b)(#s)(([[:space:]]|\\$'\n')##)* ]]; then
# The first, outer parenthesis
integer offset="${#match[1]}"
else