Files
akbasic/tests/language/statements/rem_indented_line.bas

15 lines
540 B
QBasic
Raw Normal View History

REM The line after this comment is indented, and it must still run: the
REM scanner's REM early-exit used to leave TOK_REM armed, and the next
REM line's leading whitespace re-triggered it -- every indented line
REM after a REM was silently skipped. Unnumbered on purpose: a numbered
REM line's first token overwrites the leftover and hides the defect.
PRINT 1
REM an indented statement follows
PRINT 2
REM an indented multi-line DEF body, the shape that found it
DEF F(N#)
REM a comment inside the body
RETURN N# + 5
PRINT F(10)
END