Allow escaping quotes in string

This commit is contained in:
Deukhoofd committed 2018-11-17 16:36:41 +01:00
1 parent 46308557c8
commit 4414534866
1 file changed
+5
+5
View File
@@ -144,6 +144,11 @@ namespace Upsilon.Parser
while (_position < _text.Length)
{
_position++;
if (Current == '\\' && Next == '"')
{
sb.Append("\"");
_position += 2;
}
if (Current == '"')
break;
sb.Append(Current);