Skip to content

Trailing Comments Cause Parsing Error #34

Description

@alazyworkaholic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions