TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

Copy replacing : accept no space after closing pseudo text delimiter

Open smedilol opened this issue 2 years ago • 0 comments

Describe the bug Our parser require characters ' ', ',', ';' or '.' after the closing pseudo text delimiter. IBM compiler accept that there the keyword BY is just after the pseudo text delimiter.

To Reproduce Cobol code that cause the bug :

       IDENTIFICATION DIVISION.
       PROGRAM-ID. MyPGM.
       data division.
       working-storage section.
          COPY  YMYCOPY REPLACING ==:xxx:==BY==yyy==.

       END PROGRAM MyPGM.

Expected behavior No error.

Technical See usage of MessageCode.InvalidCharAfterPseudoTextDelimiter.

How to test automatically Will be edited by a team member. Only if our current automated tests doesn't handle this.

smedilol avatar Oct 05 '22 14:10 smedilol