Merge pull request #322 from dlang-community/issue-321

Fix #321
This commit is contained in:
Sebastian Wilzbach 2018-02-02 11:31:51 +01:00 committed by GitHub
commit 8cebd50ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}