From 5af08604e03340657d3823fcd4eefe3d21f2fb30 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 27 Sep 2016 17:07:38 +0800 Subject: AST - Refactor extern blocks into Items --- src/macro_rules/mod.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/macro_rules') diff --git a/src/macro_rules/mod.cpp b/src/macro_rules/mod.cpp index 095763a8..56f75bde 100644 --- a/src/macro_rules/mod.cpp +++ b/src/macro_rules/mod.cpp @@ -138,7 +138,9 @@ bool is_token_item(eTokenType tt) { case TOK_RWORD_ENUM: case TOK_RWORD_TRAIT: case TOK_RWORD_MOD: - //case TOK_RWORD_IMPL: + case TOK_RWORD_USE: + case TOK_RWORD_EXTERN: + case TOK_RWORD_IMPL: // TODO: more? case TOK_INTERPOLATED_ITEM: return true; -- cgit v1.2.3