diff options
author | Aleksey Kladov <[email protected]> | 2018-08-30 18:37:33 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-30 18:37:33 +0100 |
commit | 80ab3433d3376b7c44787d63af6e7b3217ae41d8 (patch) | |
tree | acd067ca08c5155521444d3975f8ba016bcc8424 /crates/libsyntax2/src/grammar.ron | |
parent | 49e14a99ed4d0baf849bbd5766f6c16e7d37930c (diff) |
complete imports
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 0bb40f5ab..8267c2854 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -337,7 +337,7 @@ Grammar( | |||
337 | ), | 337 | ), |
338 | "ModuleItem": ( | 338 | "ModuleItem": ( |
339 | enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "ImplItem", | 339 | enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "ImplItem", |
340 | "UseItem", "ExternCrateItem", "ConstDef", "StaticDef" ] | 340 | "UseItem", "ExternCrateItem", "ConstDef", "StaticDef", "Module" ] |
341 | ), | 341 | ), |
342 | 342 | ||
343 | "TupleExpr": (), | 343 | "TupleExpr": (), |
@@ -507,13 +507,33 @@ Grammar( | |||
507 | "Param": ( | 507 | "Param": ( |
508 | options: [["pat", "Pat"]], | 508 | options: [["pat", "Pat"]], |
509 | ), | 509 | ), |
510 | "UseItem": (), | 510 | "UseItem": ( |
511 | options: [["use_tree", "UseTree"]] | ||
512 | ), | ||
513 | "UseTree": ( | ||
514 | options: [ | ||
515 | ["path", "Path"], | ||
516 | ["use_tree_list", "UseTreeList"], | ||
517 | ] | ||
518 | ), | ||
519 | "UseTreeList": ( | ||
520 | collections: [["use_trees", "UseTree"]] | ||
521 | ), | ||
511 | "ExternCrateItem": (), | 522 | "ExternCrateItem": (), |
512 | "ArgList": ( | 523 | "ArgList": ( |
513 | collections: [ | 524 | collections: [ |
514 | ["args", "Expr"] | 525 | ["args", "Expr"] |
515 | ] | 526 | ] |
516 | ), | 527 | ), |
517 | "Path": (), | 528 | "Path": ( |
529 | options: [ | ||
530 | ["segment", "PathSegment"] | ||
531 | ] | ||
532 | ), | ||
533 | "PathSegment": ( | ||
534 | options: [ | ||
535 | ["name_ref", "NameRef"] | ||
536 | ] | ||
537 | ), | ||
518 | }, | 538 | }, |
519 | ) | 539 | ) |