Closed
Description
Describe the bug
skipSpaces
always commits to its path, even if it doesn't consume any spaces. This occurs because it uses the consumeWith
function.
To Reproduce
See https://try.purescript.org/?gist=a37247868f0f7aaf3244f8c07fc304f6
In the line 4, no spaces are consumed. So, the (singleLineComment <|> newline)
parse shouldn't occur and we should instead move to the next part of the parser string "@" *> string "value"
.
Expected behavior
skipSpaces
should only commit to its path if it actually consumes content.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels