Skip to content

Commit de2be41

Browse files
committed
Add additional group()-s to other clauses
1 parent 9dcc393 commit de2be41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/syntax/other_clauses.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ export const otherClausesMap: CstToDocMap<AllOtherClauses> = {
1414

1515
as_clause: (print, node) => {
1616
if (isStringLiteral(node.expr) || isDynamicallyLoadedFunction(node.expr)) {
17-
return print.spaced(["asKw", "expr"]);
17+
return group(print.spaced(["asKw", "expr"]));
1818
}
19-
return [print("asKw"), indent([hardline, print("expr")])];
19+
return group([print("asKw"), indent([hardline, print("expr")])]);
2020
},
2121

2222
comma_clause: (print) => group([",", indent([line, print("expr")])]),
2323

2424
// WHERE CURRENT OF clause
2525
where_current_of_clause: (print) =>
26-
print.spaced(["whereCurrentOfKw", "cursor"]),
26+
group(print.spaced(["whereCurrentOfKw", "cursor"])),
2727
};

0 commit comments

Comments
 (0)