Add macro keyword to ITEM_RECOVERY_SET

This commit is contained in:
Edwin Cheng 2019-12-21 18:42:17 +08:00
parent bea8f58118
commit 4195c0e5f9

View file

@ -33,7 +33,7 @@ pub(super) enum ItemFlavor {
pub(super) const ITEM_RECOVERY_SET: TokenSet = token_set![
FN_KW, STRUCT_KW, ENUM_KW, IMPL_KW, TRAIT_KW, CONST_KW, STATIC_KW, LET_KW, MOD_KW, PUB_KW,
CRATE_KW, USE_KW
CRATE_KW, USE_KW, MACRO_KW
];
pub(super) fn item_or_macro(p: &mut Parser, stop_on_r_curly: bool, flavor: ItemFlavor) {