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 Comments Cause Parsing Error #34

Open
alazyworkaholic opened this issue Dec 29, 2021 · 0 comments
Open

Trailing Comments Cause Parsing Error #34

alazyworkaholic opened this issue Dec 29, 2021 · 0 comments

Comments

@alazyworkaholic
Copy link

Trailing comments in a PQ document can cause an error (I tested by adding comments to one of a few pq files in a folder).
If you have

let
    ...
in Result
//My Trailing Comment

you get Microsoft.Data.Mashup.MashupExpressionException (0x80004005): Token Semicolon expected. Start position: (209, 1). End position (209, 7).

Interestingly, one can avoid the error by writing a semicolon after the final in statement:
let ... in Result; //My Trailing Comment does not cause an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant