Batch Syntax Repair from Injection Errors When an automated script inserts lines at fixed positions without parsing context, it often splits multiline imports or statements, causing SyntaxError across multiple files. Use to identify all broken files in one pass, then write a regex or line-based fixer that respects continuation blocks (unclosed parentheses, backslashes). Test the fixer on a subset, then apply batch-wide. Verify with full syntax check ( or equivalent) before commit. ---