py: fix bug with doc string not recognised after first newline of file.

This commit is contained in:
Damien
2013-12-12 15:24:38 +00:00
parent 02f8941bf6
commit e388f1034e
2 changed files with 14 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
// # single_input is a single interactive statement;
// # file_input is a module or sequence of commands read from an input file;
// # eval_input is the input for the eval() functions.
// # NB: compound_stmt in single_input is followed by extra NEWLINE! --> not in Micropython
// # NB: compound_stmt in single_input is followed by extra NEWLINE! --> not in Micro Python
// single_input: NEWLINE | simple_stmt | compound_stmt
// file_input: (NEWLINE | stmt)* ENDMARKER
// eval_input: testlist NEWLINE* ENDMARKER