summaryrefslogtreecommitdiff
path: root/src/macro_rules
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-27 17:07:38 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-27 17:07:38 +0800
commit5af08604e03340657d3823fcd4eefe3d21f2fb30 (patch)
treeb29e6adb2e030ee59b24c3cecc12680c5ab8c8fa /src/macro_rules
parent2eb5d46788bcd1d2de1d3ee21c15edf05204ac11 (diff)
downloadmrust-5af08604e03340657d3823fcd4eefe3d21f2fb30.tar.gz
AST - Refactor extern blocks into Items
Diffstat (limited to 'src/macro_rules')
-rw-r--r--src/macro_rules/mod.cpp4
1 files changed, 3 insertions, 1 deletions
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;