Skip to content

How do I require whitespace? #126

Answered by numToStr
nathan-at-least asked this question in Q&A
Discussion options

You must be logged in to vote

How about this?

let label = ident::<_, Simple<char>>()
    .delimited_by(just('['), just(']'))
    .then_ignore(just(' ').repeated().at_least(1));

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@numToStr
Comment options

@nathan-at-least
Comment options

Answer selected by nathan-at-least
Comment options

You must be logged in to vote
1 reply
@nathan-at-least
Comment options

# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants