diff options
author | Aleksey Kladov <[email protected]> | 2018-09-02 23:51:46 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-02 23:51:46 +0100 |
commit | 23303cd0f8298c2d7b082fcb04919454c1c306ab (patch) | |
tree | 12c22fd573fb86f7718a68ec1d74eb62e401b2f6 /crates/libsyntax2/src/grammar.ron | |
parent | 83e2ab434cf20313c9248fbbe7e90f65f27d31ce (diff) |
match scope
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index fbe8397d8..798725f7e 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -370,9 +370,19 @@ Grammar( | |||
370 | options: [ "Block" ] | 370 | options: [ "Block" ] |
371 | ), | 371 | ), |
372 | "ReturnExpr": (), | 372 | "ReturnExpr": (), |
373 | "MatchExpr": (), | 373 | "MatchExpr": ( |
374 | "MatchArmList": (), | 374 | options: [ "Expr", "MatchArmList" ], |
375 | "MatchArm": (), | 375 | ), |
376 | "MatchArmList": ( | ||
377 | collections: [ ["arms", "MatchArm"] ], | ||
378 | ), | ||
379 | "MatchArm": ( | ||
380 | options: [ | ||
381 | [ "guard", "MatchGuard" ], | ||
382 | "Expr", | ||
383 | ], | ||
384 | collections: [ [ "pats", "Pat" ] ] | ||
385 | ), | ||
376 | "MatchGuard": (), | 386 | "MatchGuard": (), |
377 | "StructLit": (), | 387 | "StructLit": (), |
378 | "NamedFieldList": (), | 388 | "NamedFieldList": (), |