From 8fc624bc08df5cbb2a507231fe2c91cc56647ac0 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 3 Feb 2012 17:39:39 -0800 Subject: Fix various drift issues in the qq branch. --- src/comp/syntax/parse/lexer.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index 2ad3a7f0135..00bc73baeba 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -711,9 +711,12 @@ fn gather_comments_and_literals(cm: codemap::codemap, } let tok = next_token(rdr); if is_lit(tok.tok) { - literals += [{lit: rdr.get_str_from(tok.bpos), pos: tok.chpos}]; + let s = rdr.get_str_from(tok.bpos); + literals += [{lit: s, pos: tok.chpos}]; + log(debug, "tok lit: " + s); + } else { + log(debug, "tok: " + token::to_str(rdr, tok.tok)); } - log(debug, "tok: " + token::to_str(rdr, tok.tok)); first_read = false; } ret {cmnts: comments, lits: literals}; -- cgit 1.4.1-3-g733a5