Skip to content

Commit a9e49a0

Browse files
committed
Allow tab character after backslash line continuation
1 parent cbe44fe commit a9e49a0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/asm/lexer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,7 @@ static std::string readString(bool raw) {
13731373

13741374
// Line continuation
13751375
case ' ':
1376+
case '\t':
13761377
case '\r':
13771378
case '\n':
13781379
discardLineContinuation();
@@ -1505,6 +1506,7 @@ static void appendStringLiteral(std::string &str, bool raw) {
15051506

15061507
// Line continuation
15071508
case ' ':
1509+
case '\t':
15081510
case '\r':
15091511
case '\n':
15101512
discardLineContinuation();
@@ -1982,6 +1984,7 @@ static Token yylex_RAW() {
19821984
break;
19831985

19841986
case ' ':
1987+
case '\t':
19851988
case '\r':
19861989
case '\n':
19871990
discardLineContinuation();

test/asm/line-continuation-string.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
println "Line \ ; this comment is ignored
2-
continuations\ ; so is this one
2+
continuations\ ; so is this one
33
work!" ; =)

0 commit comments

Comments
 (0)