cpython/Doc/tools/extensions
Petr Viktorin 48f21b3631
gh-118235: Move RAISE_SYNTAX_ERROR actions to invalid rules and make sure they stay there (GH-119731)
The Full Grammar specification in the docs omits rule actions, so grammar rules that raise a syntax error looked like valid syntax.
This was solved in ef940de by hiding those rules in the custom syntax highlighter.

This moves all syntax-error alternatives to invalid rules, adds a validator that ensures that actions containing RAISE_SYNTAX_ERROR are in invalid rules, and reverts the syntax highlighter hack.
2024-05-30 09:27:32 +02:00
..
asdl_highlight.py gh-84623: Remove unused imports (#94132) 2022-06-22 19:14:27 +02:00
c_annotations.py gh-117928: Bump the minimum Sphinx version to 6.2.1 (#117853) 2024-04-26 13:10:16 +03:00
escape4chm.py bpo-46463: Fixes escape4chm.py script used when building the CHM documentation file (GH-30768) 2022-01-21 21:51:15 +00:00
glossary_search.py gh-119317: findall instead of traverse for docutils nodes (#119319) 2024-05-24 05:04:12 +03:00
patchlevel.py Issues #29349: Merge Py 2.6+ compatibility from 3.6 2017-01-29 23:37:24 +00:00
peg_highlight.py gh-118235: Move RAISE_SYNTAX_ERROR actions to invalid rules and make sure they stay there (GH-119731) 2024-05-30 09:27:32 +02:00
pyspecific.py gh-119317: findall instead of traverse for docutils nodes (#119319) 2024-05-24 05:04:12 +03:00