diff options
Diffstat (limited to 'lexer.l')
-rw-r--r-- | lexer.l | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -55,7 +55,10 @@ EOI [ \t\n#] <inst>nop/{EOI} { BEGIN(args); return T_NOP; } {SP}*{COMMENT}?\n { BEGIN(INITIAL); return T_EOL; } -{SP}*{COMMENT} { BEGIN(INITIAL); return T_SPACE; } +{SP}*{COMMENT} { BEGIN(INITIAL); return T_EOL; } {SP}+ { return T_SPACE; } +<INITIAL><<EOF>> { return 0; } +<<EOF>> { BEGIN(INITIAL); return T_EOL; } + %% |