mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-11-07 08:24:33 +01:00
Allow leading dot, eg. .25
This commit is contained in:
parent
9fff7efe7b
commit
1318809218
@ -122,7 +122,7 @@ impl<'a> Lexer<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
if c.is_ascii_digit() {
|
||||
if c.is_ascii_digit() || c == '.' {
|
||||
return self.next_number_literal();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user