Skip to content

Fix scanner rule for floats - #21

Merged
kblaschke merged 1 commit into
masterfrom
fix-float-scanner-rule
Sep 14, 2026
Merged

kblaschke merged 1 commit into
masterfrom
fix-float-scanner-rule

Conversation

@kblaschke

Copy link
Copy Markdown
Member

The previous definition also matches integers without an exponent or decimal point, shadowing the INT rule coming after it.

This fix changes the rule to only match numbers as floats which contain either an exponent (via e/E), a decimal point or both.

The previous definition also matches integers without an exponent or decimal point, shadowing the INT rule coming after it.

This fix changes the rule to only match numbers as floats which contain either an exponent (via e/E), a decimal point or both.
@kblaschke kblaschke self-assigned this Sep 10, 2026
@kblaschke kblaschke added the bug Something isn't working label Sep 10, 2026
@kblaschke
kblaschke merged commit e8c311e into master Sep 14, 2026
10 checks passed
@kblaschke
kblaschke deleted the fix-float-scanner-rule branch September 14, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants