bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)

This commit is contained in:
Pablo Galindo Salgado 2022-01-04 10:42:15 +00:00 committed by GitHub
parent 70f415fb8b
commit e09d94a140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ class PEGLexer(RegexLexer):
(_name + _text_ws + r"(\[[\w\d_\*]+?\])" + _text_ws + "(=)", bygroups(None, None, None, None, None),), (_name + _text_ws + r"(\[[\w\d_\*]+?\])" + _text_ws + "(=)", bygroups(None, None, None, None, None),),
], ],
"invalids": [ "invalids": [
(r"^(\s+\|\s+invalid_\w+\s*\n)", bygroups(None)), (r"^(\s+\|\s+.*invalid_\w+.*\n)", bygroups(None)),
(r"^(\s+\|\s+incorrect_\w+\s*\n)", bygroups(None)), (r"^(\s+\|\s+.*incorrect_\w+.*\n)", bygroups(None)),
(r"^(#.*invalid syntax.*(?:.|\n)*)", bygroups(None),), (r"^(#.*invalid syntax.*(?:.|\n)*)", bygroups(None),),
], ],
"root": [ "root": [