aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-05-14 19:28:24 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-05-14 19:28:24 +0200
commit008c89c7ddfe9bd8696236932ecdeae3be41e6fc (patch)
tree392130218ae2253aa90ec49b91aff3202d1123b7 /src
parentb23794f7e7d82c6fe9cdea4cf8d6f67404e481b8 (diff)
Don't group the call expression together with the comments, this causes breaks if the comment is long.
Diffstat (limited to 'src')
-rw-r--r--src/odin/printer/visit.odin4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin
index 836c727..f95fb3b 100644
--- a/src/odin/printer/visit.odin
+++ b/src/odin/printer/visit.odin
@@ -1167,9 +1167,7 @@ visit_expr :: proc(p: ^Printer, expr: ^ast.Expr, called_from: Expr_Called_Type =
//We enforce a break if comments exists inside the call args
if contains_comments {
document = enforce_break(document)
- } else {
- document = group(document)
- }
+ }
return document
case ^Typeid_Type: