for (q = p + 2; q < sp->e; q++) {
if (*q == '"' && q[1] == '}') {
vcc_AddToken(tl, CSTR, p, q + 2);
- p = q + 2;
break;
}
}
- u = tl->t->e - tl->t->b;
- u -= 4; /* {" ... "} */
- tl->t->dec = TlAlloc(tl, u + 1 );
- AN(tl->t->dec);
- memcpy(tl->t->dec, tl->t->b + 2, u);
- tl->t->dec[u] = '\0';
- if (q < sp->e)
+ if (q < sp->e) {
+ p = q + 2;
+ u = tl->t->e - tl->t->b;
+ u -= 4; /* {" ... "} */
+ tl->t->dec = TlAlloc(tl, u + 1 );
+ AN(tl->t->dec);
+ memcpy(tl->t->dec, tl->t->b + 2, u);
+ tl->t->dec[u] = '\0';
continue;
+ }
vcc_AddToken(tl, EOI, p, p + 2);
vsb_printf(tl->sb,
"Unterminated long-string, starting at\n");