Files
codeql/python/ql/test/extractor-tests/syntax_error
Taus 131ec8d22f Python: Handle loop constructs outside of loops
Observed on some test files in Nuitka/Nuitka, having `break` and
`continue` outside of loops in Python is (to Python) a syntax error, but
our parser happily accepted this broken syntax.

This then caused issues further downstream in the control-flow
construction, as it broke some invariants.

To fix this we now skip the code that would previously fail when the
invariants are broken.

Co-authored-by: yoff <yoff@github.com>
2025-02-06 14:30:16 +00:00
..
2024-04-15 12:22:07 +00:00
2024-04-15 12:22:07 +00:00
2024-04-15 12:22:07 +00:00