Allow escaping quotes in string

This commit is contained in:
Deukhoofd 2018-11-17 16:36:41 +01:00
parent 46308557c8
commit 4414534866
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 5 additions and 0 deletions

View File

@ -144,6 +144,11 @@ namespace Upsilon.Parser
while (_position < _text.Length) while (_position < _text.Length)
{ {
_position++; _position++;
if (Current == '\\' && Next == '"')
{
sb.Append("\"");
_position += 2;
}
if (Current == '"') if (Current == '"')
break; break;
sb.Append(Current); sb.Append(Current);