This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
tests/printer/expr/expected Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1717- Initial support for JSX V4, still work in progress.
1818 - :boom : when V4 is activated, at most one component is allowed for each module.
1919
20+ #### :bug : Bug Fix
21+
22+ - Fix issue where the printer would omit attributes for ` -> ` and ` |> ` https://github.com/rescript-lang/syntax/pull/629
23+
2024## ReScript 10.0
2125
2226- Fix printing for inline nullary functor types [ #477 ] ( https://github.com/rescript-lang/syntax/pull/477 )
Original file line number Diff line number Diff line change @@ -3658,6 +3658,7 @@ and printBinaryExpression ~customLayout (expr : Parsetree.expression) cmtTbl =
36583658 Doc. group
36593659 (Doc. concat
36603660 [
3661+ printAttributes ~custom Layout expr.pexp_attributes cmtTbl;
36613662 lhsDoc;
36623663 (match (lhsHasCommentBelow, op) with
36633664 | true , "|." -> Doc. concat [Doc. softLine; Doc. text " ->" ]
Original file line number Diff line number Diff line change 1- let s1 = x->foo
1+ let s1 = @ann x->foo
22let s2 = @ann foo(x)
3- let s3 = x |> foo
3+ let s3 = @ann x |> foo
You can’t perform that action at this time.
0 commit comments