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 17
17
- Initial support for JSX V4, still work in progress.
18
18
- :boom : when V4 is activated, at most one component is allowed for each module.
19
19
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
+
20
24
## ReScript 10.0
21
25
22
26
- 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 =
3658
3658
Doc. group
3659
3659
(Doc. concat
3660
3660
[
3661
+ printAttributes ~custom Layout expr.pexp_attributes cmtTbl;
3661
3662
lhsDoc;
3662
3663
(match (lhsHasCommentBelow, op) with
3663
3664
| 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
2
2
let 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