lexer: allow numeric characters in identifiers

This commit is contained in:
Ryan Chandler 2022-08-09 11:31:23 +01:00
parent 18a841e591
commit 983c6edbd3
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -473,7 +473,7 @@ impl Lexer {
let mut buffer = String::from(char);
while let Some(next) = self.peek {
if next.is_alphabetic() || next == '_' {
if next.is_alphanumeric() || next == '_' {
buffer.push(next);
self.next();
self.col += 1;