Skip to content

Commit

Permalink
Allow ident containing number
Browse files Browse the repository at this point in the history
Fixes #34.
  • Loading branch information
dtolnay committed Oct 19, 2019
1 parent f1bf89d commit 7460283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/fmt.rs
Expand Up @@ -63,7 +63,7 @@ fn take_ident(read: &mut &str) -> String {
let mut ident = String::new();
for (i, ch) in read.char_indices() {
match ch {
'a'..='z' | 'A'..='Z' | '_' => ident.push(ch),
'a'..='z' | 'A'..='Z' | '0'..='9' | '_' => ident.push(ch),
_ => {
*read = &read[i..];
break;
Expand Down

0 comments on commit 7460283

Please sign in to comment.