mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Return the original error if there's an unexpected trailing comma
This commit is contained in:
parent
7b9c8ed939
commit
efa54287f1
3 changed files with 60 additions and 33 deletions
|
@ -855,7 +855,7 @@ fn parse_defs_end<'a>(
|
|||
let (_, ann_type, state) = specialize(
|
||||
EExpr::Type,
|
||||
space0_before_e(
|
||||
type_annotation::located_help(min_indent + 1),
|
||||
type_annotation::located_help(min_indent + 1, false),
|
||||
min_indent + 1,
|
||||
EType::TSpace,
|
||||
EType::TIndentStart,
|
||||
|
@ -1093,7 +1093,7 @@ fn parse_expr_operator<'a>(
|
|||
let (_, ann_type, state) = specialize(
|
||||
EExpr::Type,
|
||||
space0_before_e(
|
||||
type_annotation::located_help(indented_more),
|
||||
type_annotation::located_help(indented_more, true),
|
||||
min_indent,
|
||||
EType::TSpace,
|
||||
EType::TIndentStart,
|
||||
|
@ -1120,7 +1120,7 @@ fn parse_expr_operator<'a>(
|
|||
let parser = specialize(
|
||||
EExpr::Type,
|
||||
space0_before_e(
|
||||
type_annotation::located_help(indented_more),
|
||||
type_annotation::located_help(indented_more, false),
|
||||
min_indent,
|
||||
EType::TSpace,
|
||||
EType::TIndentStart,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue