Repository navigation
COBOL: PERFORM x(i) TIMES with a subscripted or qualified count is no paragraph call (Fixes #5637) - #5661
Conversation
… paragraph call (Fixes #5637) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5661 @ d769988: 3 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- real == full-suite part 2/3 (failure) -- real |
…ifier classes (Fixes #5637) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (48c2efa) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
Fixes #5637.
Change
calls_out(cobol.py) already skippedPERFORM name TIMES(#4305) but only when TIMES followed the name directly. The negative lookahead now also accepts an optional subscript / reference modification (WS-COUNT(WS-SLOT),(1:2), one nested paren level, whitespace or a line break before it) and OF/IN qualification (WS-N OF WS-REC(2) TIMES).Class table
PERFORM id TIMES,PERFORM lit TIMESPERFORM id(sub) TIMES(incl. spaced, multi-line, nested, ref-mod)PERFORM id OF rec[(sub)] TIMESPERFORM VARYING / UNTIL / WITH TEST / TEST / FOREVERPERFORM PARA id(sub) TIMESTest:
tests/extraction/languages/test_cobol_perform_times_subscript_5637.py(fails without the fix, passes with it).Gates
pr_gates --fast6/6,--ratchets8/8 pass,crucible_check.pyboth legs PASS (golden masters unchanged, no re-bless).Cross-repo
None.
🤖 Generated with Claude Code