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 '\\':
|
||||
token << parseEscape( in );
|
||||
break;
|
||||
case 0x04:
|
||||
FC_THROW_EXCEPTION( parse_error_exception, "EOF before closing '\"' in string '${token}'",
|
||||
("token", token.str() ) );
|
||||
case '"':
|
||||
in.get();
|
||||
return token.str();
|
||||
|
|
|
|||
Loading…
Reference in a new issue