TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

Remove check on compiler directive starting before column 8 ?

Open fm-117 opened this issue 1 year ago • 0 comments

In CobolTextLine, when attempting to create the indicator area for the line, the parser checks for the presence of specific compiler directive keywords that may be written before column 8.

https://github.com/TypeCobolTeam/TypeCobol/blob/13ecd3bcc640d31b36ea84c7b0faa6bff63cd381/TypeCobol/Compiler/Text/CobolTextLine.cs#L304-L315

While those directives have been allowed in Cobol 2, it seems it is not relevant anymore for recent versions of Cobol so this check could be removed or simplified

  • Test on IBM compiler for each mentionned directives
    • If the directive is not allowed before column 8, it should be removed from the list
    • We still need a specific check for *CBL / *CONTROL

fm-117 avatar May 17 '23 10:05 fm-117