This commit is contained in:
Hackerpilot 2018-02-02 00:52:30 -08:00
parent 19a869377a
commit 5aedb2b84b
4 changed files with 20 additions and 1 deletions

View File

@ -313,7 +313,7 @@ private:
write(" ");
}
}
else if (currentIs(tok!"scriptLine"))
else if (currentIs(tok!"scriptLine") || currentIs(tok!"specialTokenSequence"))
{
writeToken();
newline();

View File

@ -0,0 +1,7 @@
void test()
{
#line 100
int a;
#line 200 "anotherfile"
int b;
}

6
tests/issue0321.d Normal file
View File

@ -0,0 +1,6 @@
void test(){
#line 100
int a;
#line 200 "anotherfile"
int b;
}

View File

@ -0,0 +1,6 @@
void test() {
#line 100
int a;
#line 200 "anotherfile"
int b;
}