check for EOF while parsing quoted strings
This commit is contained in:
parent
dd32afd0c3
commit
0a2a9ec25b
1 changed files with 3 additions and 0 deletions
|
|
@ -83,6 +83,9 @@ namespace fc
|
||||||
case '\\':
|
case '\\':
|
||||||
token << parseEscape( in );
|
token << parseEscape( in );
|
||||||
break;
|
break;
|
||||||
|
case 0x04:
|
||||||
|
FC_THROW_EXCEPTION( parse_error_exception, "EOF before closing '\"' in string '${token}'",
|
||||||
|
("token", token.str() ) );
|
||||||
case '"':
|
case '"':
|
||||||
in.get();
|
in.get();
|
||||||
return token.str();
|
return token.str();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue