diff options
author | Aleksey Kladov <[email protected]> | 2018-08-27 08:01:31 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-27 08:01:31 +0100 |
commit | 8b0298ce095b6dd635f7ed35dc97f1874157040b (patch) | |
tree | 3d6f941f7612ba1800c1e2f9fbb0a94761999be7 /crates/libsyntax2/src/grammar.ron | |
parent | 9b69c7df194d5f9081698745ed20414d7c7c2f1c (diff) |
scopes
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 9 |
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"], |