Skip to content

proposal: add a take_until_parser which return consume input until a parser success #1275

@CSUwangj

Description

@CSUwangj

here is the reason, when parsing commonmark's code block, it should be delimited by the same length of ` or ~, where we need to keep track of the length of beginning `, and might need to omit ending space. I found it's hard to just use nom to deal with it.

In another parser combinator I used before called sprache(C#) has a Except method to do that thing, I think it might be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions