fix indent issue when parsing tag unions

This commit is contained in:
Folkert 2021-04-05 14:10:49 +02:00
parent ba0408a587
commit c8e554e119
3 changed files with 19 additions and 7 deletions

View file

@ -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,