Repository navigation
det: drop a fixed-format *> comment at the source layer (Fixes #4874) - #4897
Merged
Merged
Conversation
Contributor
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 11, 2026 12:57
squid-protocol
enabled auto-merge (squash)
October 11, 2026 12:57
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4874
A fixed-format
*>floating comment was never stripped at the source layer (free format did, fixed did not), soIF D0 < 3 *> hibecame a statement hole andIF D0 NOT *> c/< 3crashed 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