mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Implement Macro By Example.
This commit is contained in:
@@ -807,6 +807,9 @@ fn parse_elt(&parser p) -> ast::elt {
|
||||
p.bump();
|
||||
auto blk = ast::mac_embed_block(parse_block_tail(p));
|
||||
ret mk_mac_expr(p, lo, p.get_hi_pos(), blk);
|
||||
} else if (p.peek() == token::ELLIPSIS) {
|
||||
p.bump();
|
||||
ret mk_mac_expr(p, lo, p.get_hi_pos(), ast::mac_ellipsis)
|
||||
} else if (p.peek() == token::TILDE) {
|
||||
p.bump();
|
||||
alt (p.peek()) {
|
||||
|
||||
Reference in New Issue
Block a user