Add br##"xx"## raw byte string literals.

This commit is contained in:
Simon Sapin 2014-06-13 18:56:24 +01:00
parent d7e01b5809
commit b8a4c1415b
7 changed files with 102 additions and 5 deletions

View file

@ -1529,6 +1529,7 @@ impl<'a> Parser<'a> {
token::LIT_STR_RAW(s, n) => {
LitStr(self.id_to_interned_str(s), ast::RawStr(n))
}
token::LIT_BINARY_RAW(ref v, _) |
token::LIT_BINARY(ref v) => LitBinary(v.clone()),
token::LPAREN => { self.expect(&token::RPAREN); LitNil },
_ => { self.unexpected_last(tok); }