Skip to content

Double-quoted strings can be terminated by CR/NL #23

Description

@hackerb9

I noticed a valid BASIC program was not highlighted correctly because the string in line 10 is missing the double-quote at the end. It looked something like this:

10 PRINT "Hello, World!
20 FOR T=32768 TO 65534
30 IF PEEK(T)=ASC("H") AND PEEK(T+1)=ASC("e") THEN PRINT T
40 NEXT T
50 END

I do not know how many forms of BASIC allow literal strings to be terminated by the end of the line, but the TRS-80 Model 100 BASIC does and Microsoft's GW-BASIC does as well. (Or, at least I believe GW-BASIC does, I'm testing using an emulator called PC-BASIC, which is supposed to be very accurate.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions