Skip to content

panc: Adjust grammar to allow a single trailing comma in choice types#272

Open
jrha wants to merge 1 commit into
quattor:mainfrom
jrha:choice_comma
Open

panc: Adjust grammar to allow a single trailing comma in choice types#272
jrha wants to merge 1 commit into
quattor:mainfrom
jrha:choice_comma

Conversation

@jrha
Copy link
Copy Markdown
Member

@jrha jrha commented Jan 27, 2025

This allows longer lists of choices to be line-wrapped more cleanly.

Also add line breaks and trailing commas to several tests to ensure this is tested.

Resolves #253.

@jrha jrha added this to the 10.9 milestone Jan 27, 2025
@jrha jrha requested a review from stdweird January 31, 2025 15:58
@jrha jrha requested review from stdweird and removed request for stdweird November 10, 2025 16:10
Comment thread panc/src/test/pan/Functionality/choice/choice18.pan
This allows longer lists of choices to be line-wrapped more cleanly.

Also add line breaks and trailing commas to several tests to ensure this is tested.
@jrha
Copy link
Copy Markdown
Member Author

jrha commented Jan 7, 2026

I've made sure that there's at least one test with line breaks, but without a trailing comma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

panc: trailing comma in choice type causes parse error

2 participants