diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index f1907d1ce..3c293d3e4 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -344,7 +344,12 @@ Grammar( | |||
344 | "ArrayExpr": (), | 344 | "ArrayExpr": (), |
345 | "ParenExpr": (), | 345 | "ParenExpr": (), |
346 | "PathExpr": (), | 346 | "PathExpr": (), |
347 | "LambdaExpr": (), | 347 | "LambdaExpr": ( |
348 | options: [ | ||
349 | ["param_list", "ParamList"], | ||
350 | ["body", "Expr"], | ||
351 | ] | ||
352 | ), | ||
348 | "IfExpr": ( | 353 | "IfExpr": ( |
349 | options: [ ["condition", "Condition"] ] | 354 | options: [ ["condition", "Condition"] ] |
350 | ), | 355 | ), |
@@ -378,7 +383,12 @@ Grammar( | |||
378 | "StructLit": (), | 383 | "StructLit": (), |
379 | "NamedFieldList": (), | 384 | "NamedFieldList": (), |
380 | "NamedField": (), | 385 | "NamedField": (), |
381 | "CallExpr": (), | 386 | "CallExpr": ( |
387 | options: [ | ||
388 | [ "expr", "Expr" ], | ||
389 | [ "arg_list", "ArgList" ], | ||
390 | ] | ||
391 | ), | ||
382 | "IndexExpr": (), | 392 | "IndexExpr": (), |
383 | "MethodCallExpr": (), | 393 | "MethodCallExpr": (), |
384 | "FieldExpr": (), | 394 | "FieldExpr": (), |
@@ -457,8 +467,15 @@ Grammar( | |||
457 | "NameRef": (), | 467 | "NameRef": (), |
458 | "Attr": ( options: [ ["value", "TokenTree"] ] ), | 468 | "Attr": ( options: [ ["value", "TokenTree"] ] ), |
459 | "TokenTree": (), | 469 | "TokenTree": (), |
460 | "TypeParamList": ( collections: [ ["type_params", "TypeParam" ] ]), | 470 | "TypeParamList": ( |
471 | collections: [ | ||
472 | ["type_params", "TypeParam" ], | ||
473 | ["lifetime_params", "LifetimeParam" ], | ||
474 | ] | ||
475 | ), | ||
461 | "TypeParam": ( traits: ["NameOwner"] ), | 476 | "TypeParam": ( traits: ["NameOwner"] ), |
477 | "LifetimeParam": ( options: [ ["lifetime", "Lifetime"] ] ), | ||
478 | "Lifetime": (), | ||
462 | "WhereClause": (), | 479 | "WhereClause": (), |
463 | "ExprStmt": ( | 480 | "ExprStmt": ( |
464 | options: [ ["expr", "Expr"] ] | 481 | options: [ ["expr", "Expr"] ] |
@@ -492,5 +509,10 @@ Grammar( | |||
492 | ), | 509 | ), |
493 | "UseItem": (), | 510 | "UseItem": (), |
494 | "ExternCrateItem": (), | 511 | "ExternCrateItem": (), |
512 | "ArgList": ( | ||
513 | collections: [ | ||
514 | ["args", "Expr"] | ||
515 | ] | ||
516 | ) | ||
495 | }, | 517 | }, |
496 | ) | 518 | ) |