diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index a98e9e2fd..7217a4633 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -273,7 +273,7 @@ Grammar( | |||
273 | "Module": ( | 273 | "Module": ( |
274 | traits: ["NameOwner", "AttrsOwner"], | 274 | traits: ["NameOwner", "AttrsOwner"], |
275 | collections: [ | 275 | collections: [ |
276 | ["modules", "Module"] | 276 | ["items", "ModuleItem"] |
277 | ] | 277 | ] |
278 | ), | 278 | ), |
279 | "ConstDef": ( traits: [ | 279 | "ConstDef": ( traits: [ |
@@ -331,6 +331,10 @@ Grammar( | |||
331 | "AttrsOwner" | 331 | "AttrsOwner" |
332 | ], | 332 | ], |
333 | ), | 333 | ), |
334 | "ModuleItem": ( | ||
335 | enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "ImplItem", | ||
336 | "UseItem", "ExternCrateItem" ] | ||
337 | ), | ||
334 | 338 | ||
335 | "TupleExpr": (), | 339 | "TupleExpr": (), |
336 | "ArrayExpr": (), | 340 | "ArrayExpr": (), |
@@ -479,6 +483,8 @@ Grammar( | |||
479 | ), | 483 | ), |
480 | "Param": ( | 484 | "Param": ( |
481 | options: [["pat", "Pat"]], | 485 | options: [["pat", "Pat"]], |
482 | ) | 486 | ), |
487 | "UseItem": (), | ||
488 | "ExternCrateItem": (), | ||
483 | }, | 489 | }, |
484 | ) | 490 | ) |