Open
Description
I think maybe we should change the options that can even be used with regex parsing to exclude
multiline
:logShow $ runParser "some\nvarious\nlines" (regexP "various$" *> PS.rest) (Right "rious\nlines")
This is because it advances the
consumed
parser position by the length of the first pattern match. It would need to be able to know the offset of that match as well as the length of it to updateconsumed
correctly. We could get that through runningsearch
too perhaps, but I think it would be nice to disallow flag(s) that don't make sense for a parser style definition.
Originally posted by @garyb in #232 (comment)
Should we forbid multiline
? Should we make the multiline
flag work properly?
Metadata
Metadata
Assignees
Labels
No labels