Include numbers in valid identifier characters

Fixes #27.
This commit is contained in:
Daniel Watkins committed 2018-08-04 16:00:15 -04:00
1 parent 4bbff56d0e
commit 3e56bc1d60
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -221,7 +221,7 @@ impl<'input> Lexer<'input> {
fn is_char(&self) -> bool {
match self.chr0 {
Some('a'...'z') | Some('A'...'Z') | Some('_') => return true,
Some('a'...'z') | Some('A'...'Z') | Some('_') | Some('0'...'9') => return true,
_ => return false,
}
}
File renamed without changes.