Skip to content

Commit 7d09e5e

Browse files
committed
Finish Module grammar
1 parent 081f35f commit 7d09e5e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/ra_syntax/src/ast/generated/nodes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ impl Name {
248248
pub struct ItemList {
249249
pub(crate) syntax: SyntaxNode,
250250
}
251+
impl ast::AttrsOwner for ItemList {}
251252
impl ast::ModuleItemOwner for ItemList {}
252253
impl ItemList {
253254
pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['{']) }

xtask/src/codegen/rust.ungram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Module =
2424
(ItemList | ';')
2525

2626
ItemList =
27-
'{' Item* '}'
27+
'{' Attr* Item* '}'
2828

2929
FnDef =
3030
Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList?

0 commit comments

Comments
 (0)