Fix #326 - Spaces missing after attributes in function literals merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
parent
16c3811261
commit
f3463cdd34
|
@ -786,7 +786,7 @@ private:
|
||||||
else if (astInformation.funLitStartLocations.canFindIndex(tIndex))
|
else if (astInformation.funLitStartLocations.canFindIndex(tIndex))
|
||||||
{
|
{
|
||||||
sBraceDepth++;
|
sBraceDepth++;
|
||||||
if (peekBackIs(tok!")"))
|
if (peekBackIsOneOf(true, tok!")", tok!"identifier"))
|
||||||
write(" ");
|
write(" ");
|
||||||
auto e = expressionEndIndex(index);
|
auto e = expressionEndIndex(index);
|
||||||
immutable int l = currentLineLength + tokens[index .. e].map!(a => tokenLength(a))
|
immutable int l = currentLineLength + tokens[index .. e].map!(a => tokenLength(a))
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
() @trusted { stderr.writeln("\033[01;33m", url, "\033[0m"); }();
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
void main(){()@trusted{stderr.writeln("\033[01;33m", url, "\033[0m");}();}
|
|
@ -0,0 +1,3 @@
|
||||||
|
void main() {
|
||||||
|
() @trusted { stderr.writeln("\033[01;33m", url, "\033[0m"); }();
|
||||||
|
}
|
Loading…
Reference in New Issue