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
This should be made explicit in the chapter, or the parser should be changed to solve this problem.
The text was updated successfully, but these errors were encountered:
I tried this grammar to solve the problem:
file = { SOI ~ ((section | property)? ~ (NEWLINE | EOI))* }
But the program crash when I try to run it.
Sorry, something went wrong.
I tried this grammar to solve the problem: file = { SOI ~ ((section | property)? ~ (NEWLINE | EOI))* } But the program crash when I try to run it.
This is probably because EOI is a zero-length match, so you get infinite matches here.
EOI
A workaround I've been using for this case is e.g.
file = { SOI ~ (!EOI ~ (section | property)? ~ (NEWLINE | EOI))* }
No branches or pull requests
This should be made explicit in the chapter, or the parser should be changed to solve this problem.
The text was updated successfully, but these errors were encountered: