mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
fix indent issue when parsing tag unions
This commit is contained in:
parent
ba0408a587
commit
c8e554e119
3 changed files with 19 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::ast::CommentOrNewline;
|
||||
use crate::ast::Spaceable;
|
||||
use crate::parser::{
|
||||
self, and, BadInputError, Col, Parser,
|
||||
self, and, backtrackable, BadInputError, Col, Parser,
|
||||
Progress::{self, *},
|
||||
Row, State,
|
||||
};
|
||||
|
@ -28,7 +28,10 @@ where
|
|||
space0_e(min_indent, space_problem, indent_before_problem),
|
||||
and(
|
||||
parser,
|
||||
space0_e(min_indent, space_problem, indent_after_problem),
|
||||
one_of![
|
||||
backtrackable(space0_e(min_indent, space_problem, indent_after_problem)),
|
||||
succeed!(&[] as &[_]),
|
||||
],
|
||||
),
|
||||
),
|
||||
move |arena: &'a Bump,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue