updated for version 7.0-109
diff --git a/src/misc1.c b/src/misc1.c
index b74ce0d..0c2b797 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -8074,9 +8074,20 @@
}
if (*that == '"' && *(that + 1) != NUL)
{
- that++;
- while (*that && (*that != '"' || *(that - 1) == '\\'))
- ++that;
+ while (*++that && *that != '"')
+ {
+ /* skipping escaped characters in the string */
+ if (*that == '\\')
+ {
+ if (*++that == NUL)
+ break;
+ if (that[1] == NUL)
+ {
+ ++that;
+ break;
+ }
+ }
+ }
}
if (*that == '(' || *that == '[')
++parencount;