mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Allow tab character after backslash line continuation
This commit is contained in:
@@ -1373,6 +1373,7 @@ static std::string readString(bool raw) {
|
|||||||
|
|
||||||
// Line continuation
|
// Line continuation
|
||||||
case ' ':
|
case ' ':
|
||||||
|
case '\t':
|
||||||
case '\r':
|
case '\r':
|
||||||
case '\n':
|
case '\n':
|
||||||
discardLineContinuation();
|
discardLineContinuation();
|
||||||
@@ -1505,6 +1506,7 @@ static void appendStringLiteral(std::string &str, bool raw) {
|
|||||||
|
|
||||||
// Line continuation
|
// Line continuation
|
||||||
case ' ':
|
case ' ':
|
||||||
|
case '\t':
|
||||||
case '\r':
|
case '\r':
|
||||||
case '\n':
|
case '\n':
|
||||||
discardLineContinuation();
|
discardLineContinuation();
|
||||||
@@ -1982,6 +1984,7 @@ backslash:
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ' ':
|
case ' ':
|
||||||
|
case '\t':
|
||||||
case '\r':
|
case '\r':
|
||||||
case '\n':
|
case '\n':
|
||||||
discardLineContinuation();
|
discardLineContinuation();
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
println "Line \ ; this comment is ignored
|
println "Line \ ; this comment is ignored
|
||||||
continuations\ ; so is this one
|
continuations\ ; so is this one
|
||||||
work!" ; =)
|
work!" ; =)
|
||||||
|
|||||||
Reference in New Issue
Block a user