Skip to content
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

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