diff options
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 527f6927010..495d1372d79 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -886,10 +886,11 @@ fn parse_bottom_expr(p: &parser) -> @ast::expr { p.bump(); alt p.peek() { token::LIT_STR(s) { + let sp = p.get_span(); p.bump(); let lit = @{node: ast::lit_str(p.get_str(s), ast::sk_unique), - span: p.get_span()}; + span: sp}; ex = ast::expr_lit(lit); } _ { ex = ast::expr_uniq(parse_expr(p)); } |
