Allow tab character after backslash line continuation

This commit is contained in:
Rangi42
2024-10-01 22:41:55 -04:00
parent cbe44fed9b
commit a9e49a09fd
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1373,6 +1373,7 @@ static std::string readString(bool raw) {
// Line continuation
case ' ':
case '\t':
case '\r':
case '\n':
discardLineContinuation();
@@ -1505,6 +1506,7 @@ static void appendStringLiteral(std::string &str, bool raw) {
// Line continuation
case ' ':
case '\t':
case '\r':
case '\n':
discardLineContinuation();
@@ -1982,6 +1984,7 @@ backslash:
break;
case ' ':
case '\t':
case '\r':
case '\n':
discardLineContinuation();
+1 -1
View File
@@ -1,3 +1,3 @@
println "Line \ ; this comment is ignored
continuations\ ; so is this one
continuations\ ; so is this one
work!" ; =)