Allow escaping quotes in string
This commit is contained in:
parent
46308557c8
commit
4414534866
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue