bpo-40334: Improve column offsets for thrown syntax errors by Pegen (GH-19782)
diff --git a/Parser/pegen/parse.c b/Parser/pegen/parse.c
index 2be5e38..33c92c2 100644
--- a/Parser/pegen/parse.c
+++ b/Parser/pegen/parse.c
@@ -10515,7 +10515,7 @@
(_tmp_132_var = _tmp_132_rule(p))
)
{
- res = RAISE_SYNTAX_ERROR ( "cannot assign to %s" , _PyPegen_get_expr_name ( a ) );
+ res = RAISE_SYNTAX_ERROR_NO_COL_OFFSET ( "cannot assign to %s" , _PyPegen_get_expr_name ( a ) );
if (res == NULL && PyErr_Occurred()) {
p->error_indicator = 1;
return NULL;