Skip to content

Commit

Permalink
Remove space between partheneses
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed Sep 17, 2024
1 parent 39d0fa8 commit 756930f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/haz3lcore/pretty/ExpToSegment.re
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ let should_add_space = (s1, s2) =>
| _ when String.starts_with(s2, ~prefix=" ") => false
| _ when String.ends_with(s1, ~suffix="⏎") => false
| _ when String.starts_with(s2, ~prefix="⏎") => false
| _
when
String.ends_with(s1, ~suffix=")")
&& String.starts_with(s2, ~prefix="(") =>
false
| _ => true
};

Expand Down

0 comments on commit 756930f

Please sign in to comment.