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 authored and kanaka committed Nov 19, 2024
1 parent 52fc0c8 commit 3219b75
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 3219b75

Please sign in to comment.