Improve comment spacing
This commit is contained in:
parent
5baf5e3559
commit
4bcb152c25
|
@ -179,8 +179,12 @@ private:
|
||||||
{
|
{
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
{
|
{
|
||||||
if (tokens[index - 1].line + 1 < tokens[index].line)
|
if (tokens[index - 1].type != tok!";"
|
||||||
|
&& tokens[index - 1].type != tok!"}"
|
||||||
|
&& tokens[index - 1].line + 1 < tokens[index].line)
|
||||||
|
{
|
||||||
newline();
|
newline();
|
||||||
|
}
|
||||||
else if (tokens[index - 1].line == tokens[index].line)
|
else if (tokens[index - 1].line == tokens[index].line)
|
||||||
write(" ");
|
write(" ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue