Fix: extrace space after first field
This commit is contained in:
parent
1024f16715
commit
81c607a115
|
@ -749,7 +749,8 @@ private:
|
||||||
}
|
}
|
||||||
else if (peekBackIs(tok!"identifier") && (peekBack2Is(tok!"{", true)
|
else if (peekBackIs(tok!"identifier") && (peekBack2Is(tok!"{", true)
|
||||||
|| peekBack2Is(tok!"}", true) || peekBack2Is(tok!";", true)
|
|| peekBack2Is(tok!"}", true) || peekBack2Is(tok!";", true)
|
||||||
|| peekBack2Is(tok!":", true)) && !(isBlockHeader(1) && !peekIs(tok!"if")))
|
|| peekBack2Is(tok!":", true) || peekBack2Is(tok!",", true))
|
||||||
|
&& !(isBlockHeader(1) && !peekIs(tok!"if")))
|
||||||
{
|
{
|
||||||
writeToken();
|
writeToken();
|
||||||
if (isStructInitializer)
|
if (isStructInitializer)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
void foo()
|
void foo()
|
||||||
{
|
{
|
||||||
S s1 = {a: 3};
|
S s1 = {a: 3};
|
||||||
S s2 = {a: 3, b : "test string"};
|
S s2 = {a: 3, b: "test string"};
|
||||||
S s3 = {a: 3, b : "test string", c : {x: 3.14, y : 3 + 4}};
|
S s3 = {a: 3, b: "test string", c: {x: 3.14, y: 3 + 4}};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
void foo() {
|
void foo() {
|
||||||
S s1 = {a: 3};
|
S s1 = {a: 3};
|
||||||
S s2 = {a: 3, b : "test string"};
|
S s2 = {a: 3, b: "test string"};
|
||||||
S s3 = {a: 3, b : "test string", c : {x: 3.14, y : 3 + 4}};
|
S s3 = {a: 3, b: "test string", c: {x: 3.14, y: 3 + 4}};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue