diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-08-10 13:03:19 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-08-10 13:03:19 -0700 |
| commit | fb00463feb4c51915941a84077b78c173e6dad2b (patch) | |
| tree | 99185b107f3e5f7b10e09edffec1ed4ec8d3280d /src/libsyntax/ext | |
| parent | b19c2ed8f3b04a872520c5f47782fe04d39de24c (diff) | |
| parent | 33c6d3fd7880df371151ec3e9a053b7169a181e5 (diff) | |
| download | rust-fb00463feb4c51915941a84077b78c173e6dad2b.tar.gz rust-fb00463feb4c51915941a84077b78c173e6dad2b.zip | |
Merge branch 'issue-8393-attributes-in-macros' of https://github.com/nikomatsakis/rust into rollup
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 5a1317034b2..918949113ad 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -17,6 +17,7 @@ use codemap; use parse::lexer::*; //resolve bug? use parse::ParseSess; use parse::parser::Parser; +use parse::attr::parser_attr; use parse::token::{Token, EOF, to_str, nonterminal, get_ident_interner, ident_to_str}; use parse::token; @@ -430,6 +431,7 @@ pub fn parse_nt(p: &Parser, name: &str) -> nonterminal { + token::to_str(get_ident_interner(), p.token)) }, "path" => token::nt_path(p.parse_path_with_tps(false)), + "attr" => token::nt_attr(@p.parse_attribute(false)), "tt" => { *p.quote_depth += 1u; //but in theory, non-quoted tts might be useful let res = token::nt_tt(@p.parse_token_tree()); |
