continue
},
token::Shebang(s) => {
- try!(write!(out, "{}", Escape(s.as_str())));
+ try!(write!(out, "{}", Escape(&s.as_str())));
continue
},
// If this '&' token is directly adjacent to another token, assume
// keywords are also included in the identifier set
token::Ident(ident, _is_mod_sep) => {
- match &token::get_ident(ident)[..] {
+ match &*ident.name.as_str() {
"ref" | "mut" => "kw-2",
"self" => "self",