fix: '\r' escape

This commit is contained in:
Sebastian Ullrich 2020-05-20 15:13:24 +02:00
parent dea99e1814
commit d420f46432

View file

@ -619,7 +619,7 @@ def quotedCharFn : ParserFn
if input.atEnd i then s.mkEOIError
else
let curr := input.get i;
if curr == '\\' || curr == '\"' || curr == '\'' || curr == 'n' || curr == 't' then
if curr == '\\' || curr == '\"' || curr == '\'' || curr == 'r' || curr == 'n' || curr == 't' then
s.next input i
else if curr == 'x' then
andthenFn hexDigitFn hexDigitFn c (s.next input i)