Fix pretty-printing of istr literals. Issue #855
This commit is contained in:
parent
c274d16b7f
commit
7b12924813
2 changed files with 13 additions and 2 deletions
|
|
@ -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)); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue