Skip to content

Unsure how to capture optional tokens after recursively capturing a list #412

Closed Answered by alecthomas
chazu asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't looked in detail, but using participle.UseLookahead() fixes this. What's likely happening is that there is some ambiguity between the inner case and TrailingSuperViewConnection, so the inner case partially matches, but fails to match completely.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chazu
Comment options

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