mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix: string literal line separator escape
This commit is contained in:
parent
2f7fbd57ee
commit
9667b81438
3 changed files with 6 additions and 3 deletions
|
|
@ -26,6 +26,8 @@ class TomlReader : BasicParser {
|
|||
}
|
||||
}
|
||||
|
||||
// modified version of BaseParser.parseString
|
||||
// todo: extract common part
|
||||
std::string parseMultilineString() {
|
||||
pos += 2;
|
||||
char next = peek();
|
||||
|
|
@ -57,7 +59,7 @@ class TomlReader : BasicParser {
|
|||
case '"': ss << '"'; break;
|
||||
case '\\': ss << '\\'; break;
|
||||
case '/': ss << '/'; break;
|
||||
case '\n': pos++; continue;
|
||||
case '\n': continue;
|
||||
default:
|
||||
throw error(
|
||||
"'\\" + std::string({c}) + "' is an illegal escape"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue