mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Comment grammar
This commit is contained in:
parent
615842fba6
commit
9b3a824097
1 changed files with 1 additions and 1 deletions
|
|
@ -897,7 +897,7 @@ tok_nextc(register struct tok_state *tok)
|
||||||
tok->cur = tok->buf + cur;
|
tok->cur = tok->buf + cur;
|
||||||
tok->line_start = tok->cur;
|
tok->line_start = tok->cur;
|
||||||
/* replace "\r\n" with "\n" */
|
/* replace "\r\n" with "\n" */
|
||||||
/* For Mac leave the \r, giving syntax error */
|
/* For Mac leave the \r, giving a syntax error */
|
||||||
pt = tok->inp - 2;
|
pt = tok->inp - 2;
|
||||||
if (pt >= tok->buf && *pt == '\r') {
|
if (pt >= tok->buf && *pt == '\r') {
|
||||||
*pt++ = '\n';
|
*pt++ = '\n';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue