Skip to content

Commit bfcbfee

Browse files
committed
Remove colons from :ELSE
1 parent f1497ed commit bfcbfee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

m100-crunch.lex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ LINENUM [0-9]+
4545
/* Replace 100 ' with 100 REM as it tokenizes to 1 instead of 2 bytes */
4646
^[ \t]*[0-9]+[ \t:]*['][^\r\n]* fprintf(yyout, "%d REM", atoi(yytext));
4747

48+
/* Replace :ELSE with ELSE */
49+
[ \t:]*:[ \t:]*ELSE fprintf(yyout, "ELSE");
50+
4851
/* Replace 100 :REM with 100 REM */
4952
^[ \t]*[0-9]+[ \t:]*REM[^\r\n]* fprintf(yyout, "%d REM", atoi(yytext));
5053

0 commit comments

Comments
 (0)