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

fix parsing of multiple comment lines #3175

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

jonsequitur
Copy link
Contributor

This PR adds combinatorial testing to produce test cases with multiple consecutive line comments in all of the valid positions, and fixes the previous issue with parsing them.

@jonsequitur jonsequitur force-pushed the combinatorial-testing-5 branch from f9ffa19 to 316e566 Compare September 14, 2023 01:23
{
if (IsComment())
while (IsComment())
Copy link
Contributor

Choose a reason for hiding this comment

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

We may have another bug if there is a blank line (or a line with only whitespaces) in between two comments.

{
requestNode.Add(commentAfterHeaders);
requestNode.Add(comment);
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider: It may be useful to introduce an HttpSyntaxNode.AddRange method for comments.

@jonsequitur jonsequitur merged commit 528d756 into dotnet:main Sep 14, 2023
@colombod colombod added the bug Something isn't working label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants