You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The automatic formatting that dafny-mode performs does not produce nice results in calc statements. In fact, I find the automatic formatting is working against me, and I constantly have to correct what it's doing. I'd love to see this improved.
Repro:
Start with
lemmaL() {
calc {
}
}
Then, inside the braces that follow the calc statement, type the following lines in order:
A(x);
==B(x);
C(x);
==// here is a commentD(x);
== { MyFavoriteLemma(x, y); }
E(x);
{ AnotherLemma(x, y); }
F(x);
<
100;
This produces:
lemmaL() {
calc {
A(x);
==B(x);
C(x);
==// here is a commentD(x);
== { MyFavoriteLemma(x, y); }
E(x);
{ AnotherLemma(x, y); }
F(x);
<
100;
}
}
but I wish it would instead produce:
lemmaL() {
calc {
A(x);
==B(x);
C(x);
==// here is a commentD(x);
== { MyFavoriteLemma(x, y); }
E(x);
{ AnotherLemma(x, y); }
F(x);
<
100;
}
}
The text was updated successfully, but these errors were encountered:
The automatic formatting that dafny-mode performs does not produce nice results in
calc
statements. In fact, I find the automatic formatting is working against me, and I constantly have to correct what it's doing. I'd love to see this improved.Repro:
Start with
Then, inside the braces that follow the
calc
statement, type the following lines in order:This produces:
but I wish it would instead produce:
The text was updated successfully, but these errors were encountered: