mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis.
This commit is contained in:
parent
428f0641ec
commit
dde002899d
9 changed files with 111 additions and 95 deletions
|
@ -113,7 +113,7 @@ class Transformer:
|
|||
token.LBRACE: self.atom_lbrace,
|
||||
token.NUMBER: self.atom_number,
|
||||
token.STRING: self.atom_string,
|
||||
token.DOT: self.atom_ellipsis,
|
||||
token.ELLIPSIS: self.atom_ellipsis,
|
||||
token.NAME: self.atom_name,
|
||||
}
|
||||
self.encoding = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue