This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Commit 19c7071
authored
Unify comment formatting inside empty blocks (#647)
* keep comments inside the empty record
* refactor printcommentsinside
* tweak
* fix jsx case
* test changes
* fix modtype format
* dont closing tag if comments inside
* clean
* clean and comments
* clean
* update CHANGELOG
* fix review comments
* add more tests
* clean
* clean
* remove duplicate test
* remove isNil
* use find_opt instead1 parent 3d25038 commit 19c7071
File tree
11 files changed
+252
-157
lines changed- src
- tests/printer
- comments
- expected
- modExpr/expected
- modType/expected
11 files changed
+252
-157
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | | - | |
697 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
698 | 700 | | |
699 | 701 | | |
700 | 702 | | |
| |||
1023 | 1025 | | |
1024 | 1026 | | |
1025 | 1027 | | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1042 | 1048 | | |
1043 | 1049 | | |
1044 | 1050 | | |
| |||
0 commit comments