Skip to content
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

Trailing ) in comment yields parse error #284

Closed
senier opened this issue Jun 11, 2020 · 1 comment · Fixed by #551
Closed

Trailing ) in comment yields parse error #284

senier opened this issue Jun 11, 2020 · 1 comment · Fixed by #551
Assignees
Labels
bug specification Related to specification package (e.g., specification parsing)

Comments

@senier
Copy link
Member

senier commented Jun 11, 2020

Everything after a comment sign should be ignored. When a comment ends with a ) sign, however, the parser fails:

package P is

    type M is
      message
         null then Foo
            with Length => Length
            -- )
            ;
         Foo : Opaque;
      end message;

end P;
Parsing foo.rflx
rflx: parser error: 
            -- )
                ^
ParseSyntaxException: Expected {{"+" | "-"} term | {"*" | "/"} term}, found '\n'  (at char 115), (line:7, col:17)
@senier senier added bug specification Related to specification package (e.g., specification parsing) labels Jun 14, 2020
@treiher treiher linked a pull request Jan 21, 2021 that will close this issue
@treiher treiher linked a pull request Jan 21, 2021 that will close this issue
@treiher
Copy link
Collaborator

treiher commented Jan 21, 2021

This seems to be fixed by #551.

@senier senier self-assigned this Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug specification Related to specification package (e.g., specification parsing)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants