Skip to content

Commit

Permalink
basic: read ^2 as two separate tokens
Browse files Browse the repository at this point in the history
Extending the previous line triggers 'LINE TOO LONG'.
  • Loading branch information
asarhaddon committed Nov 16, 2024
1 parent fe075d0 commit 4da7239
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impls/basic/reader.in.bas
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ READ_TOKEN:
IF C$=";" THEN GOSUB SKIP_TO_EOL:GOTO READ_TOKEN
T$=C$
IF T$="(" OR T$=")" OR T$="[" OR T$="]" OR T$="{" OR T$="}" OR T$="'" OR T$="`" OR T$="@" THEN RETURN
IF T$="^" THEN RETURN
GOSUB PEEK_CHAR: REM peek at next character
IF T$="~" AND C$<>"@" THEN RETURN
S1=0:S2=0: REM S1: INSTRING?, S2: ESCAPED?
Expand Down

0 comments on commit 4da7239

Please sign in to comment.