allow trailing commas in a struct pattern after an _ field (#8074)

Following a leads decision
(https://github.com/carbon-language/carbon-lang/issues/7404), this PR
adds support for trailing commas in a struct pattern where it was
previously only allowed after a full field.
This commit is contained in:
oli-ej authored and GitHub committed 2026-11-03 22:02:33 +00:00
1 parent 80a4a4d005
commit 5ae3dcaa92
8 files changed
+78 -25

No files matched your search

+1
View File
@@ -483,6 +483,7 @@ class NodeStack {
case Parse::NodeKind::TemplateBindingName:
case Parse::NodeKind::TupleLiteralStart:
case Parse::NodeKind::TuplePatternStart:
case Parse::NodeKind::PatternListUnderscoreField:
case Parse::NodeKind::VariableInitializer:
case Parse::NodeKind::VariableIntroducer:
case Parse::NodeKind::InlineImportBody: