mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 11:12:41 +00:00
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:
1 parent
80a4a4d005
commit
5ae3dcaa92
8 files changed
+78
-25
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user