Skip to content

Commit 91e8487

Browse files
committed
added forgotten parameters back in
1 parent 907d849 commit 91e8487

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/org/rascalmpl/library/lang/rascal/format/Rascal.rsc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ Box toBox((Expression) `<Expression caller>(<{Expression ","}* arguments>, <{Key
820820
// call with kwargs and a final non-void closure
821821
Box toBox((Expression) `<Expression caller>(<{Expression ","}* arguments>, <Type typ> <Parameters parameters> { <Statement+ statements> }, <{KeywordArgument[Expression] ","}+ kwargs>)`)
822822
= HOV0(
823-
H0(toBox(caller), L("("), H(toBox(typ), L("("))),
823+
H0(toBox(caller), L("("), HOV(toBox(arguments)), H(L(","), toBox(typ), L("("))),
824824
I(HOV0(toBox(parameters))),
825825
H(L(")"), L("{")),
826826
I(V(toClusterBox(statements))),
@@ -831,7 +831,8 @@ Box toBox((Expression) `<Expression caller>(<{Expression ","}* arguments>, <Type
831831
// call with kwargs and a final non-void closure
832832
Box toBox((Expression) `<Expression caller>(<{Expression ","}* arguments>, <Parameters parameters> { <Statement+ statements> }, <{KeywordArgument[Expression] ","}+ kwargs>)`)
833833
= HOV0(
834-
H0(toBox(caller), L("("), L("(")),
834+
H0(toBox(caller), L("(")),
835+
I(HOV(toBox(arguments)), L(","), L("(")),
835836
I(HOV0(toBox(parameters))),
836837
H(L(")"), L("{")),
837838
I(V(toClusterBox(statements))),
@@ -843,9 +844,8 @@ Box toBox((Expression) `<Expression caller>(<{Expression ","}* arguments>, <Para
843844
Box toBox((Expression) `<Expression caller>(<{Expression ","}+ arguments> <{KeywordArgument[Expression] ","}+ kwargs>)`)
844845
= HOV(
845846
H0(toBox(caller), L("(")),
846-
I(HOV(
847-
toBox(arguments),
848-
toBox(kwargs),
847+
I(HOV(toBox(arguments)),
848+
I(HOV(toBox(kwargs)),
849849
hs=1)),
850850
L(")"), hs=0)
851851
when !(arguments[-1] is closure || arguments[-1] is voidClosure);

src/org/rascalmpl/library/util/Formatters.rsc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ parameter (a substring). For example: `#Statement` and `if (true) false;`.
242242
}
243243
list[TextEdit](type[Tree], str) subStringEdits(type[&G <: Tree] grammar, Style style, FormattingOptions opts=fo()) {
244244
Tree(type[Tree], str, loc) p = parsers(grammar);
245+
245246

246247
return list[TextEdit] (type[Tree] nonterminal, str input) {
247248
loc stub = |tmp:///| + "formatted<md5Hash(input)>.txt";

0 commit comments

Comments
 (0)