diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-27 17:07:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-27 17:07:38 +0800 |
commit | 5af08604e03340657d3823fcd4eefe3d21f2fb30 (patch) | |
tree | b29e6adb2e030ee59b24c3cecc12680c5ab8c8fa /src/macro_rules | |
parent | 2eb5d46788bcd1d2de1d3ee21c15edf05204ac11 (diff) | |
download | mrust-5af08604e03340657d3823fcd4eefe3d21f2fb30.tar.gz |
AST - Refactor extern blocks into Items
Diffstat (limited to 'src/macro_rules')
-rw-r--r-- | src/macro_rules/mod.cpp | 4 |
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;
|