summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.h
diff options
context:
space:
mode:
authorBrandt Bucher <brandt@python.org>2021-04-30 00:19:28 (GMT)
committerGitHub <noreply@github.com>2021-04-30 00:19:28 (GMT)
commitdbe60ee09dc5a624cfb78dff61ecf050a5b3f105 (patch)
treecb0850e50916b666879770be4fb42b473db357e8 /Parser/pegen.h
parent87655e2cf58c543914ea05ebe5a0377441da1ef2 (diff)
downloadcpython-dbe60ee09dc5a624cfb78dff61ecf050a5b3f105.zip
cpython-dbe60ee09dc5a624cfb78dff61ecf050a5b3f105.tar.gz
cpython-dbe60ee09dc5a624cfb78dff61ecf050a5b3f105.tar.bz2
bpo-43892: Validate the first term of complex literal value patterns (GH-25735)
Diffstat (limited to 'Parser/pegen.h')
-rw-r--r--Parser/pegen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/pegen.h b/Parser/pegen.h
index 2af551b..d591c56 100644
--- a/Parser/pegen.h
+++ b/Parser/pegen.h
@@ -153,7 +153,7 @@ void * _PyPegen_seq_last_item(asdl_seq *seq);
Py_LOCAL_INLINE(void *)
RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype,
Py_ssize_t lineno, Py_ssize_t col_offset,
- Py_ssize_t end_lineno, Py_ssize_t end_col_offset,
+ Py_ssize_t end_lineno, Py_ssize_t end_col_offset,
const char *errmsg, ...)
{
va_list va;
@@ -284,6 +284,7 @@ expr_ty _PyPegen_collect_call_seqs(Parser *, asdl_expr_seq *, asdl_seq *,
int end_col_offset, PyArena *arena);
expr_ty _PyPegen_concatenate_strings(Parser *p, asdl_seq *);
expr_ty _PyPegen_ensure_imaginary(Parser *p, expr_ty);
+expr_ty _PyPegen_ensure_real(Parser *p, expr_ty);
asdl_seq *_PyPegen_join_sequences(Parser *, asdl_seq *, asdl_seq *);
int _PyPegen_check_barry_as_flufl(Parser *, Token *);
mod_ty _PyPegen_make_module(Parser *, asdl_stmt_seq *);