Skip to content

Commit

Permalink
Merge pull request #5195 from unisonweb/force-highlighting
Browse files Browse the repository at this point in the history
Use `SyntaxText.Unit` as style for `foo()`
  • Loading branch information
pchiusano authored Jul 9, 2024
2 parents 615887f + 2c1a048 commit 2591ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser-typechecker/src/Unison/Syntax/TermPrinter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ pretty0
(App' x (Constructor' (ConstructorReference DD.UnitRef 0)), _) | isLeaf x -> do
px <- pretty0 (ac (if isBlock x then 0 else 9) Normal im doc) x
pure . paren (p >= 11 || isBlock x && p >= 3) $
px <> fmt S.DelayForceChar (l "()")
px <> fmt S.Unit (l "()")
(Apps' f (unsnoc -> Just (args, lastArg)), _)
| isSoftHangable lastArg -> do
fun <- goNormal 9 f
Expand Down

0 comments on commit 2591ade

Please sign in to comment.