Skip to content

When using a backslash (\) within a string the syntax highlighting incorrectly disrupts subsequent lines #43

Description

@jamescherti

Mode: basic-qb45-mode
Basic-mode Version: 1.2.1

When using a backslash (\) within a string in the following code snippet, the syntax highlighting incorrectly disrupts subsequent lines. The issue occurs specifically when defining a string with a backslash, as demonstrated below:

DECLARE SUB func ()
DECLARE SUB func2 ()
DECLARE SUB func3 ()
DECLARE SUB func4 ()

'----------------> THE ISSUE OCCURS AFTER 'image$ = "dir\', due to the backslash \
image$ = "dir\" 

PRINT "Loading..."

DEFINT A-Z
DIM SHARED thanks(220 * 10)
DEF SEG = VARSEG(thanks(0))
BLOAD image$ + "thanks.ext", VARPTR(thanks(0))
DEF SEG

DIM SHARED thanks2(220 * 10)
DEF SEG = VARSEG(thanks2(0))
BLOAD image$ + "thanks2.ext", VARPTR(thanks2(0))
DEF SEG

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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions