Add back support for '\r'
commit375ed593e43cf73886328091afbf8688a094cb3f
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateWed 13 Sep 2017, 08:57 (9 years ago)
parentb3569f7
src/Parse/Primitives.hs+1
@@ -1045,6 +1045,7 @@ eatEscape array offset length =
10451045 else
10461046 case Text.unsafeIndex array offset of
10471047 0x006E {- n -} -> EscapeNormal
1048+ 0x0072 {- r -} -> EscapeNormal
10481049 0x0074 {- t -} -> EscapeNormal
10491050 0x0022 {- " -} -> EscapeNormal
10501051 0x0027 {- ' -} -> EscapeNormal
src/Reporting/Error/Syntax.hs+1
@@ -638,6 +638,7 @@ escapeProblemToReport escapeProblem =
638638 , Help.toSimpleHint "Valid escape characters include:"
639639 , Help.indent 4 $ Help.vcat $
640640 [ "\\n"
641+ , "\\r"
641642 , "\\t"
642643 , "\\\""
643644 , "\\\'"