nextc(): always return an '\n' at end of input

fix #1564
This commit is contained in:
fleuria
2013-11-08 11:36:45 +08:00
parent d2451dfb16
commit fa71403bc5
2 changed files with 13 additions and 6 deletions
+1
View File
@@ -113,6 +113,7 @@ struct mrb_parser_state {
char const *filename;
int lineno;
int column;
int eof;
enum mrb_lex_state_enum lstate;
mrb_ast_node *lex_strterm; /* (type nest_level beg . end) */