From 8b0298ce095b6dd635f7ed35dc97f1874157040b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 27 Aug 2018 10:01:31 +0300 Subject: scopes --- crates/libsyntax2/src/grammar.ron | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crates/libsyntax2/src/grammar.ron') 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( "AttrsOwner", ], options: [ - ["param_list", "ParamList"] + ["param_list", "ParamList"], + ["body", "Block"], ], ), "StructDef": ( @@ -431,7 +432,11 @@ Grammar( "TypeParamList": ( collections: [ ["type_params", "TypeParam" ] ]), "TypeParam": ( traits: ["NameOwner"] ), "WhereClause": (), - "LetStmt": ( options: [ ["pat", "Pat"] ]), + "ExprStmt": (), + "LetStmt": ( options: [ + ["pat", "Pat"], + ["initializer", "Expr"], + ]), "Block": ( collections: [ ["let_stmts", "LetStmt"], -- cgit v1.2.3