aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar.ron
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r--crates/libsyntax2/src/grammar.ron9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron
index 3a125ace6..aa2742b3e 100644
--- a/crates/libsyntax2/src/grammar.ron
+++ b/crates/libsyntax2/src/grammar.ron
@@ -248,7 +248,8 @@ Grammar(
248 "AttrsOwner", 248 "AttrsOwner",
249 ], 249 ],
250 options: [ 250 options: [
251 ["param_list", "ParamList"] 251 ["param_list", "ParamList"],
252 ["body", "Block"],
252 ], 253 ],
253 ), 254 ),
254 "StructDef": ( 255 "StructDef": (
@@ -431,7 +432,11 @@ Grammar(
431 "TypeParamList": ( collections: [ ["type_params", "TypeParam" ] ]), 432 "TypeParamList": ( collections: [ ["type_params", "TypeParam" ] ]),
432 "TypeParam": ( traits: ["NameOwner"] ), 433 "TypeParam": ( traits: ["NameOwner"] ),
433 "WhereClause": (), 434 "WhereClause": (),
434 "LetStmt": ( options: [ ["pat", "Pat"] ]), 435 "ExprStmt": (),
436 "LetStmt": ( options: [
437 ["pat", "Pat"],
438 ["initializer", "Expr"],
439 ]),
435 "Block": ( 440 "Block": (
436 collections: [ 441 collections: [
437 ["let_stmts", "LetStmt"], 442 ["let_stmts", "LetStmt"],