TypeCobol
TypeCobol copied to clipboard
Recalculate ScanState in AutoReplacePartialWordsTokensDocument
Describe the bug Following #2190 and PR #2465, the ScanState used by TokensLinesIterator in AutoReplacePartialWordsTokensDocument is not always correct. This TokensLinesIterator must use the ScanStateTracker to recalculate the correct ScanState. Wait for #2463 which will change the architecture of Replace/Copy iterators.
To Reproduce Edit a COPY with:
05 :DVZOSM:-NB pic 9(08).
05 :DVZOSM:-DATA pic
9(08) occurs 10 depending on :DVZOSM:-NB.
There will be an error on :DVZOSM:-NB
.
Expected behavior No error
Technical Will be edited by a team member. Implementation details with the chosen solution.
How to test automatically Automated unit test.