Skip to content

Commit

Permalink
Change interval syntax in pretty printer
Browse files Browse the repository at this point in the history
  • Loading branch information
tehrengruber committed Dec 3, 2024
1 parent f57d6e9 commit 5de8066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gt4py/next/iterator/pretty_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def visit_FunCall(self, node: ir.FunCall, *, prec: int) -> list[str]:
if fun_name == "named_range" and len(node.args) == 3:
# named_range(dim, start, stop) → dim: [star, stop)
dim, start, end = self.visit(node.args, prec=0)
res = self._hmerge(dim, [": ["], start, [", "], end, [")"])
res = self._hmerge(dim, [": ["], start, [", "], end, ["["]) # to get matching parenthesis of functions
return self._prec_parens(res, prec, PRECEDENCE["__call__"])
if fun_name == "cartesian_domain" and len(node.args) >= 1:
# cartesian_domain(x, y, ...) → c{ x × y × ... } # noqa: RUF003 [ambiguous-unicode-character-comment]
Expand Down

0 comments on commit 5de8066

Please sign in to comment.