-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline comments not recognized when there is no character after *> #81
Comments
The exception you see is from the Antlr lexer during the second stage of parsing, and is a symptom of a problem in the preprocessor. I've had the same problem, but haven't had chance to refine the fix and contribute it with tests. on line 22 of io/proleap/cobol/preprocessor/sub/line/rewriter/impl/CobolInlineCommentEntriesNormalizerImpl.java if you replace the regular expression with Maybe @uwol can see a better solution? |
Hi @sjbutler, thank you for the answer. I believe I found an unsupported syntax to PIC. I'll check the docs first. |
Hello,
First, thank you for the awesome job.
I'm trying to parse a Cobol code with a header with the structure below:
In the lines with only *>, followed or not by spaces, I get an error java.lang.RuntimeException: syntax error in line 8:7 extraneous input *> expecting.
I made a test setting some text after the "*>" and the exception do not occur.
I'm using the 2.4.0 version with TANDEM format.
I'm new to Cobol and I'm not sure if something is wrong. It's the expected behavior?
The text was updated successfully, but these errors were encountered: