Allow defining token tree macros. They should work now!

This commit is contained in:
Paul Stansifer 2012-07-06 18:04:28 -07:00
parent caa83b41bb
commit 54741b9427
12 changed files with 185 additions and 74 deletions

View file

@ -413,7 +413,7 @@ type mac_body = option<mac_body_>;
#[auto_serialize]
enum mac_ {
mac_invoc(@path, mac_arg, mac_body),
mac_invoc_tt(@path, token_tree), //will kill mac_invoc and steal its name
mac_invoc_tt(@path,~[token_tree]),//will kill mac_invoc and steal its name
mac_embed_type(@ty),
mac_embed_block(blk),
mac_ellipsis,