mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Patch #1550786: ellipsis literal.
This commit is contained in:
parent
7cae87ca7b
commit
52318d6215
19 changed files with 140 additions and 141 deletions
|
@ -2385,6 +2385,11 @@ validate_atom(node *tree)
|
|||
for (pos = 1; res && (pos < nch); ++pos)
|
||||
res = validate_ntype(CHILD(tree, pos), STRING);
|
||||
break;
|
||||
case DOT:
|
||||
res = (nch == 3 &&
|
||||
validate_ntype(CHILD(tree, 1), DOT) &&
|
||||
validate_ntype(CHILD(tree, 2), DOT));
|
||||
break;
|
||||
default:
|
||||
res = 0;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue