Skip to content

Add longest common prefix to standard library - #281

Merged
mitchpaulus merged 2 commits into
mainfrom
longest-common-prefix
Jul 31, 2026
Merged

Add longest common prefix to standard library#281
mitchpaulus merged 2 commits into
mainfrom
longest-common-prefix

Conversation

@mitchpaulus

Copy link
Copy Markdown
Owner

No description provided.

mitchpaulus and others added 2 commits July 30, 2026 14:31
ebbf8e4 made a float token end only at whitespace or EOF, so a float
followed by any delimiter ((1.5), [2.5], 3.5;, 4.5,) lexed as a literal,
breaking the runtime, typecheck, and go test suites.

End the float when the next character cannot continue a literal,
mirroring the integer path. 1.pdf and 1.5x still lex as single literals.

Adds TestFloatVsLiteral covering both directions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mitchpaulus
mitchpaulus merged commit fa410b8 into main Jul 31, 2026
1 check passed
@mitchpaulus
mitchpaulus deleted the longest-common-prefix branch July 31, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant