summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2013-08-08 13:28:06 -0400
committerNiko Matsakis <niko@alum.mit.edu>2013-08-08 19:41:02 -0400
commit33c6d3fd7880df371151ec3e9a053b7169a181e5 (patch)
tree55df69841505538e605cc5389455cdc96120052b /src/libsyntax/parse/lexer.rs
parent8f65dbfcfa11aa521aa59881f6ab064bbd07184e (diff)
downloadrust-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.rs6
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);
     }