Skip to content

fix: lexer splits -0 after Minus to remove decl-parse hijack#378

Merged
danieljohnmorris merged 1 commit into
mainfrom
fix/minus-zero-decl-parse
May 18, 2026
Merged

fix: lexer splits -0 after Minus to remove decl-parse hijack#378
danieljohnmorris merged 1 commit into
mainfrom
fix/minus-zero-decl-parse

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Closes scientific-researcher rerun9. Lexer split-context predicate extended to include Minus token. New reading of - -N M family pinned with regression test.

The post-lex split that turns Number(-N) into Minus + Number(N) now
fires when the preceding token is Minus. Fixes `- -0 a bo` mis-parse
as decl boundary. Note: collateral semantics change to `- -N M` family
(now Negate(Subtract(N, M)); was Subtract(-N, M)); pinned with explicit
regression test. Closes scientific-researcher rerun9.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@danieljohnmorris danieljohnmorris merged commit e754505 into main May 18, 2026
5 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/minus-zero-decl-parse branch May 18, 2026 10:56
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