Don't parse code in comment entry paragraphs
Status: Beta
Brought to you by:
kdeschut
See testsuite/cobol85/OBNC1M.CBL:
004800 A COMMENT ENTRY PARAGRAPH IS TO BE TREATED AS OBNC14.2
004900 DOCUMENTATION. ANY ATTEMPT TO COMPILE ANYTHING CONTAINED OBNC14.2
005000 HERE IS ILLEGAL. THE LINES WHICH FOLLOW CONSTITUTE A TEST OBNC14.2
005100 OF THIS REQUIREMENT. ALL LINES BEGIN IN AREA B --- OBNC14.2
Yeah, but (as I think I documented somewhere in the Readme) this is a deprecated feature of the language, and one that I have only seen used in this one test example. I wouldn't worry about it too much, unless you (or a user) have some real life code which uses this...
Going through the open issues. I added support for comment entries in some expected locations to the grammar a while ago. So I'm closing this. If anyone still has other cases which need to be covered, please open a new issue with a sample.