8000 Revert "gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec … · encukou/cpython@3542d2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3542d2e

Browse files
committed
Revert "pythongh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (pythonGH-118237)"
This reverts commit ef940de. The highlighter change is no longer needed, since all RAISE_SYNTAX_ERROR actions are in invalid rules.
1 parent 6f3dc04 commit 3542d2e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Doc/tools/extensions/peg_highlight.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class PEGLexer(RegexLexer):
1616
- Rule types
1717
- Rule options
1818
- Rules named `invalid_*` or `incorrect_*`
19-
- Rules with `RAISE_SYNTAX_ERROR`
2019
"""
2120

2221
name = "PEG"
@@ -60,7 +59,6 @@ class PEGLexer(RegexLexer):
6059
(r"^(\s+\|\s+.*invalid_\w+.*\n)", bygroups(None)),
6160
(r"^(\s+\|\s+.*incorrect_\w+.*\n)", bygroups(None)),
6261
(r"^(#.*invalid syntax.*(?:.|\n)*)", bygroups(None),),
63-
(r"^(\s+\|\s+.*\{[^}]*RAISE_SYNTAX_ERROR[^}]*\})\n", bygroups(None)),
6462
],
6563
"root": [
6664
include("invalids"),

0 commit comments

Comments
 (0)
0