Allow leading dot, eg. .25

This commit is contained in:
PaddiM8 2023-07-20 00:00:50 +02:00
parent 9fff7efe7b
commit 1318809218

View File

@ -122,7 +122,7 @@ impl<'a> Lexer<'a> {
}
}
if c.is_ascii_digit() {
if c.is_ascii_digit() || c == '.' {
return self.next_number_literal();
}