mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
This commit is contained in:
parent
fc7bb8c786
commit
e2a383d062
146 changed files with 1446 additions and 1477 deletions
|
@ -1323,17 +1323,13 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
|
|||
return ERRORTOKEN;
|
||||
}
|
||||
}
|
||||
if (c == 'l' || c == 'L')
|
||||
c = tok_nextc(tok);
|
||||
}
|
||||
else {
|
||||
/* Decimal */
|
||||
do {
|
||||
c = tok_nextc(tok);
|
||||
} while (isdigit(c));
|
||||
if (c == 'l' || c == 'L')
|
||||
c = tok_nextc(tok);
|
||||
else {
|
||||
{
|
||||
/* Accept floating point numbers. */
|
||||
if (c == '.') {
|
||||
fraction:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue