Skip to content

Commit

Permalink
Allow leading dot, eg. .25
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddiM8 committed Jul 19, 2023
1 parent 9fff7ef commit 1318809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kalk/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl<'a> Lexer<'a> {
}
}

if c.is_ascii_digit() {
if c.is_ascii_digit() || c == '.' {
return self.next_number_literal();
}

Expand Down

0 comments on commit 1318809

Please sign in to comment.