rescript-lang / syntax

ReScript's syntax as a standalone repo.
MIT License
256 stars 38 forks source link

Fix issue where printing nested pipe discards await #688

Closed cristianoc closed 1 year ago

cristianoc commented 1 year ago

Fixes https://github.com/rescript-lang/syntax/issues/687

Certain nested patterns for binary operators are printed "manually" so the special printing for await is not used.

cristianoc commented 1 year ago

I don't like this fix very much, but it's a consequence of the way nested binary operators are printed.