This commit is contained in:
Hackerpilot 2015-03-17 16:53:49 -07:00
parent 686a65e9dc
commit 374e155237
4 changed files with 32 additions and 0 deletions

View File

@ -204,6 +204,13 @@ private:
|| currentIs(tok!"characterLiteral"))
{
writeToken();
if (index < tokens.length)
{
immutable t = tokens[index].type;
if (t == tok!"identifier" || isStringLiteral(t) || isNumberLiteral(t)
|| t == tok!"characterLiteral")
write(" ");
}
}
else if (currentIs(tok!"module") || currentIs(tok!"import"))
{

View File

@ -0,0 +1,8 @@
struct Test
{
this(string name, string[] aliasList, string briefDescription, string examDesc,
string onOpenDesc, string openDesc, string onCloseDesc, string closeDesc,
Flag!"canOpen" canOpen, Flag!"canClose" canClose, Flag!"isOpen" isOpen)
{
}
}

11
tests/issue0111.d Normal file
View File

@ -0,0 +1,11 @@
struct Test {this(string name,
string[] aliasList,
string briefDescription,
string examDesc,
string onOpenDesc,
string openDesc,
string onCloseDesc,
string closeDesc,
Flag!"canOpen" canOpen,
Flag!"canClose" canClose,
Flag!"isOpen" isOpen){}}

View File

@ -0,0 +1,6 @@
struct Test {
this(string name, string[] aliasList, string briefDescription, string examDesc,
string onOpenDesc, string openDesc, string onCloseDesc, string closeDesc,
Flag!"canOpen" canOpen, Flag!"canClose" canClose, Flag!"isOpen" isOpen) {
}
}