diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-08-08 13:28:06 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-08-08 19:41:02 -0400 |
| commit | 33c6d3fd7880df371151ec3e9a053b7169a181e5 (patch) | |
| tree | 55df69841505538e605cc5389455cdc96120052b /src/libsyntax/parse/lexer.rs | |
| parent | 8f65dbfcfa11aa521aa59881f6ab064bbd07184e (diff) | |
| download | rust-33c6d3fd7880df371151ec3e9a053b7169a181e5.tar.gz rust-33c6d3fd7880df371151ec3e9a053b7169a181e5.zip | |
Allow attributes to appear as macro arguments
Fixes #8393
Diffstat (limited to 'src/libsyntax/parse/lexer.rs')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 49deafeda40..bde568b2610 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -129,7 +129,11 @@ impl reader for StringReader { impl reader for TtReader { fn is_eof(@mut self) -> bool { self.cur_tok == token::EOF } - fn next_token(@mut self) -> TokenAndSpan { tt_next_token(self) } + fn next_token(@mut self) -> TokenAndSpan { + let r = tt_next_token(self); + debug!("TtReader: r=%?", r); + return r; + } fn fatal(@mut self, m: ~str) -> ! { self.sp_diag.span_fatal(self.cur_span, m); } |
