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

Disallow quotes outside strings and multiline strings #146

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

goodmami
Copy link
Owner

@goodmami goodmami commented Aug 7, 2024

Following the discussion in #143, quotation marks should not be parsed as symbols when they appear alone. Making this change also implies that quotation marks are not allowed as role names (:"). This PR also changes the documented PEG grammar to explicitly say that line-breaking spaces (\n\r\v\f) are not allowed inside strings, which makes it consistent with how parsing is actually done.

Quotes are now only allowed to delimit strings or as escaped
characters within strings.

This commit also changes the PEG grammar to disallow line-breaking
spaces within strings so it more accurately represents the line-based
parsing behavior.
@goodmami goodmami merged commit 1f52cbc into main Aug 7, 2024
14 checks passed
@goodmami goodmami deleted the fix-143-multiline branch September 10, 2024 05:07
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.

1 participant