mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 13:34:15 +00:00
Graccefully handle overflowing unicode literals
This commit is contained in:
parent
a83f44188b
commit
6ef87b3b9d
11 changed files with 106 additions and 27 deletions
|
|
@ -1 +1 @@
|
|||
Expr(When(Pattern(Start(@28), @28), @0), @0)
|
||||
Expr(When(Pattern(Str(Open(@28), @28), @28), @0), @0)
|
||||
|
|
@ -0,0 +1 @@
|
|||
Expr(Str(UnicodeEscapeTooLarge(@4-13), @0), @0)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'\u(FFFFFFFFF)'
|
||||
|
|
@ -242,6 +242,7 @@ mod test_snapshots {
|
|||
fail/return_as_single_line_expr.expr,
|
||||
fail/return_in_pat.expr,
|
||||
fail/single_no_end.expr,
|
||||
fail/str_over_large_unicode_escape.expr,
|
||||
fail/tab_crash.header,
|
||||
fail/tag_union_end.expr,
|
||||
fail/tag_union_lowercase_tag_name.expr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue