gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec#118237
Merged
encukou merged 1 commit intopython:mainfrom Apr 26, 2024
Merged
gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec#118237encukou merged 1 commit intopython:mainfrom
encukou merged 1 commit intopython:mainfrom
Conversation
Member
|
Another alternative it's to move all these rules to be inside an |
Member
Author
|
Thanks for the suggestion, I'll look into that! I'm limiting the time I spend on grammar-in-docs; with beta1 and PyCon US coming up it might be a month before my next post here. |
Member
In any case I think meanwhile this is not a bad temporary solution, so let's merge it for now but let's keep an eye on the better one 👍 |
pablogsal
approved these changes
Apr 25, 2024
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Apr 26, 2024
…ythonGH-118237) (cherry picked from commit ef940de) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
GH-118309 is a backport of this pull request to the 3.12 branch. |
encukou
added a commit
that referenced
this pull request
Apr 26, 2024
encukou
added a commit
to encukou/cpython
that referenced
this pull request
May 29, 2024
… spec (pythonGH-118237)" This reverts commit ef940de. The highlighter change is no longer needed, since all RAISE_SYNTAX_ERROR actions are in invalid rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm not too comfortable with regular expressions, and this looks like piling on another hack, but this highlighter rule strips all the current
RAISE_SYNTAX_ERRORalternatives:A diff of the rendered page:
📚 Documentation preview 📚: https://cpython-previews--118237.org.readthedocs.build/