Add item matcher in mbe

This commit is contained in:
Edwin Cheng 2019-04-18 10:21:36 +08:00
parent 112fd0ec7d
commit e944fd059d
6 changed files with 70 additions and 0 deletions

View file

@ -69,6 +69,10 @@ pub(crate) fn stmt(p: &mut Parser, with_semi: bool) {
expressions::stmt(p, with_semi)
}
pub(crate) fn item(p: &mut Parser) {
items::item_or_macro(p, true, items::ItemFlavor::Mod)
}
pub(crate) fn reparser(
node: SyntaxKind,
first_child: Option<SyntaxKind>,