summaryrefslogtreecommitdiffstats
path: root/Grammar/python.gram
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>2020-05-01 13:13:43 (GMT)
committerGitHub <noreply@github.com>2020-05-01 13:13:43 (GMT)
commit76c1b4d5c5a610c09943e1ee7ae18f1957804730 (patch)
treeeeaf4c2eb7b712817866ba49d04a5c57a3508795 /Grammar/python.gram
parent719e14d2837520c18398a3e22a36f20c1fe76edf (diff)
downloadcpython-76c1b4d5c5a610c09943e1ee7ae18f1957804730.zip
cpython-76c1b4d5c5a610c09943e1ee7ae18f1957804730.tar.gz
cpython-76c1b4d5c5a610c09943e1ee7ae18f1957804730.tar.bz2
bpo-40334: Improve column offsets for thrown syntax errors by Pegen (GH-19782)
Diffstat (limited to 'Grammar/python.gram')
-rw-r--r--Grammar/python.gram2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram
index 38107fc..3813d88 100644
--- a/Grammar/python.gram
+++ b/Grammar/python.gram
@@ -609,7 +609,7 @@ invalid_assignment:
| expression ':' expression ['=' annotated_rhs] {
RAISE_SYNTAX_ERROR("illegal target for annotation") }
| a=expression ('=' | augassign) (yield_expr | star_expressions) {
- RAISE_SYNTAX_ERROR("cannot assign to %s", _PyPegen_get_expr_name(a)) }
+ RAISE_SYNTAX_ERROR_NO_COL_OFFSET("cannot assign to %s", _PyPegen_get_expr_name(a)) }
invalid_block:
| NEWLINE !INDENT { RAISE_INDENTATION_ERROR("expected an indented block") }
invalid_comprehension: