Skip to content

Commit 752c26f

Browse files
committed
fix a lexing bug
1 parent a38227b commit 752c26f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ impl<'a> Lexer<'a> {
10711071
}
10721072
let rest = &ident[lowercase_end..];
10731073
if !rest.is_empty() {
1074-
let ident = canonicalize_ident(&ident);
1074+
let ident = canonicalize_ident(rest);
10751075
self.end(Ident(ident), start);
10761076
}
10771077
} else {

0 commit comments

Comments
 (0)