We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug lines beginning with //! result in
| 6 | #[derive(pest_derive::Parser)] | ^^^^^^^^^^^^^^^^^^^ | = help: message: error parsing --> 16:1 | 16 | //! | ^--- | = expected EOI or rule
To Reproduce load a .pest file with a line starting with //!
Expected behavior The line is ignored
Additional context I'm using pest 2.5.7 The issue was not present in pest 2.1.3
this looks potentially similar to #818.
The text was updated successfully, but these errors were encountered:
CC @huacnlee
Sorry, something went wrong.
@tomtau Get it.
That now is a grammar_doc issue, it by design.
grammar_doc
Because Pest required at latest have one grammar_rule:
grammar_rule
grammar_rules = _{ SOI ~ grammar_doc* ~ (grammar_rule)+ ~ EOI }
@tomtau Should I change grammar_rule+ into grammar_rule*, to let allow zero rules in a pest file.
grammar_rule+
grammar_rule*
Fix pest-parser#838 grammar error when only have //!, /// or //.
//!
///
//
a90a91c
5a05e69
I did have grammar rules, they were all before the comment in case that matters.
No branches or pull requests
Describe the bug
lines beginning with //! result in
To Reproduce
load a .pest file with a line starting with //!
Expected behavior
The line is ignored
Additional context
I'm using pest 2.5.7
The issue was not present in pest 2.1.3
this looks potentially similar to #818.
The text was updated successfully, but these errors were encountered: