fix #52
This commit is contained in:
parent
e9bfb63807
commit
a7557174ae
1 changed files with 5 additions and 2 deletions
7
toml.c
7
toml.c
|
@ -1699,8 +1699,11 @@ static int scan_string(context_t* ctx, char* p, int lineno, int dotisspecial)
|
||||||
if (*p == '\\') { escape = 1; continue; }
|
if (*p == '\\') { escape = 1; continue; }
|
||||||
if (*p == '\n') break;
|
if (*p == '\n') break;
|
||||||
if (*p == '"') break;
|
if (*p == '"') break;
|
||||||
if (*p == '\'' && ++sqcnt == 3) {
|
if (*p == '\'') {
|
||||||
return e_syntax(ctx, lineno, "triple-s-quote inside string lit");
|
if (++sqcnt == 3) {
|
||||||
|
return e_syntax(ctx, lineno, "triple-s-quote inside string lit");
|
||||||
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
sqcnt = 0;
|
sqcnt = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue