mirror of
https://github.com/danog/parser.git
synced 2025-01-23 05:21:22 +01:00
lexer: allow numeric characters in identifiers
This commit is contained in:
parent
18a841e591
commit
983c6edbd3
@ -473,7 +473,7 @@ impl Lexer {
|
|||||||
|
|
||||||
let mut buffer = String::from(char);
|
let mut buffer = String::from(char);
|
||||||
while let Some(next) = self.peek {
|
while let Some(next) = self.peek {
|
||||||
if next.is_alphabetic() || next == '_' {
|
if next.is_alphanumeric() || next == '_' {
|
||||||
buffer.push(next);
|
buffer.push(next);
|
||||||
self.next();
|
self.next();
|
||||||
self.col += 1;
|
self.col += 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user