summaryrefslogtreecommitdiff
path: root/py/lexer.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-22 22:32:27 +0100
committerDamien <damien.p.george@gmail.com>2013-10-22 22:32:27 +0100
commit92c06561a3e657924b77aa53725529daddafb343 (patch)
treee5e5a1d8ce294c21eb6c926c42280eab1ed8aed5 /py/lexer.c
parent9d63932b3d82752e83281dacead20d412b9e34bb (diff)
Improve REPL compount statement detection.
Diffstat (limited to 'py/lexer.c')
-rw-r--r--py/lexer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/lexer.c b/py/lexer.c
index 88bc0a1aa..cd2e05ece 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -10,6 +10,9 @@
#define TAB_SIZE (8)
+// TODO seems that CPython allows NULL byte in the input stream
+// don't know if that's intentional or not, but we don't allow it
+
struct _py_lexer_t {
const char *name; // name of source
void *stream_data; // data for stream