mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
fix headers and apply
This commit is contained in:
parent
56f6770804
commit
736fa73e88
3 changed files with 30 additions and 19 deletions
|
@ -195,12 +195,12 @@ where
|
|||
|
||||
/// Zero or more (spaces/comments/newlines).
|
||||
pub fn space0<'a>(min_indent: u16) -> impl Parser<'a, &'a [CommentOrNewline<'a>]> {
|
||||
move |a, s| {
|
||||
dbg!(&s, min_indent);
|
||||
|
||||
dbg!(spaces(false, min_indent).parse(a, s))
|
||||
}
|
||||
// spaces(false, min_indent)
|
||||
// move |a, s| {
|
||||
// dbg!(&s, min_indent);
|
||||
//
|
||||
// dbg!(spaces(false, min_indent).parse(a, s))
|
||||
// }
|
||||
spaces(false, min_indent)
|
||||
}
|
||||
|
||||
/// One or more (spaces/comments/newlines).
|
||||
|
@ -209,12 +209,12 @@ pub fn space1<'a>(min_indent: u16) -> impl Parser<'a, &'a [CommentOrNewline<'a>]
|
|||
// exactly one space followed by char that isn't [' ', '\n', or '#'], and
|
||||
// if so, return empty slice. The case where there's exactly 1 space should
|
||||
// be by far the most common.
|
||||
move |a, s| {
|
||||
dbg!(&s, min_indent);
|
||||
|
||||
dbg!(spaces(true, min_indent).parse(a, s))
|
||||
}
|
||||
// spaces(true, min_indent)
|
||||
// move |a, s| {
|
||||
// dbg!(&s, min_indent);
|
||||
//
|
||||
// dbg!(spaces(true, min_indent).parse(a, s))
|
||||
// }
|
||||
spaces(true, min_indent)
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue