Skip to content

Conversation

@andreubotella
Copy link
Collaborator

Currently the start of a multi-line comment is only parsed as such if the tokenizer is in one of the junk states; that is, if it is followed by a space or newline. Starts of multi-line comments that occur at the beginning of the source text or immediately after the end of a token are misparsed as a division punctuator followed by a multiplication punctuator. This change fixes this.

…pace

Currently the start of a multi-line comment is only parsed as such if
the tokenizer is in one of the junk states; that is, if it is followed
by a space or newline. Starts of multi-line comments that occur at the
beginning of the source text or immediately after the end of a token
are misparsed as a division punctuator followed by a multiplication
punctuator. This change fixes this.
@andreubotella andreubotella requested a review from sno2 August 27, 2022 23:46
Copy link
Collaborator

@MierenManz MierenManz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm but I'm not the parsing expert here

@aapoalas aapoalas self-requested a review December 27, 2022 06:41
@aapoalas aapoalas merged commit 8b4579e into main Dec 27, 2022
@aapoalas aapoalas deleted the comment-at-start-of-token branch December 27, 2022 06:41
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

Successfully merging this pull request may close these issues.

4 participants