summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-11-09 15:08:39 (GMT)
committerGuido van Rossum <guido@python.org>1990-11-09 15:08:39 (GMT)
commita769172f6a872ae21e23d797cf484fc0dbdd98e7 (patch)
treef08dcb2ac632ba43a31bbf5474404cff4887417c /Parser/tokenizer.c
parentf1ac403c4d81590b69e3f661c5bf380b1a5e6e34 (diff)
downloadcpython-a769172f6a872ae21e23d797cf484fc0dbdd98e7.zip
cpython-a769172f6a872ae21e23d797cf484fc0dbdd98e7.tar.gz
cpython-a769172f6a872ae21e23d797cf484fc0dbdd98e7.tar.bz2
Increment line number for continuation lines.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 38f76ed..97eda75 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -466,6 +466,7 @@ tok_get(tok, p_start, p_end)
tok->done = E_TOKEN;
return ERRORTOKEN;
}
+ tok->lineno++;
goto again; /* Read next line */
}