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 grammar //// parsing error. #818

merged 1 commit into from
Mar 4, 2023


Copy link

@huacnlee huacnlee commented Mar 3, 2023

Solve #817

@huacnlee huacnlee requested a review from a team as a code owner March 3, 2023 16:39
@huacnlee huacnlee requested review from NoahTheDuke and removed request for a team March 3, 2023 16:39
@@ -171,6 +171,6 @@ space = _{ " " | "\t" }
/// A top-level comment.
grammar_doc = ${ "//!" ~ space? ~ inner_doc }
/// A rule comment.
line_doc = ${ "///" ~ space? ~ !"/" ~ inner_doc }
Copy link
Member Author

Choose a reason for hiding this comment

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

Before this rule was following the Rust line_doc rule, wants to be let the //// as a normal comment.

But I think, maybe we don't need to do that, just let it as a line_doc is also ok. So it will not come to a complex rule.

@tomtau tomtau merged commit ebb1ccd into pest-parser:master Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants