Skip to content

det: drop a fixed-format *> comment at the source layer (Fixes #4874) - #4897

Merged
squid-protocol merged 1 commit into
mainfrom
fix/4874-inline-comment
Oct 11, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/4874-inline-comment

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4874

A fixed-format *> floating comment was never stripped at the source layer (free format did, fixed did not), so IF D0 < 3 *> hi became a statement hole and IF D0 NOT *> c / < 3 crashed the parse. logical_lines (det/source.py) now drops a *> comment outside a literal in fixed form too (_drop_comment, also after a continuation join), so every later stage (NOT/AND/OR joins from #4872, EVALUATE WHEN, PERFORM UNTIL) sees the program without the comment. A *> inside a string literal is kept.

Tests: tests/cobol_mainframe/test_det_inline_comment.py (condition forms, NOT/AND/OR breaks, EVALUATE, PERFORM UNTIL, after a statement, comment-only line, literal holding *> plus a comment, continued literal); e2e vs cobc in test_det_conditions.py (EQUIVALENCE_E2E=1, passes).

Gates: pr_gates --fast 5/5, --ratchets 7 pass 0 skipped; det_port check 104/104 unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 11, 2026 12:57
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 12:57
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 1e28694 into main Oct 11, 2026
36 checks passed
@squid-protocol
squid-protocol deleted the fix/4874-inline-comment branch October 11, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det: a fixed-form inline comment (*>) inside a condition becomes a hole, or crashes after NOT

1 participant