@@ -274,8 +274,6 @@ test "struct" {
274274 \\ };
275275 \\};
276276 ,
277- \\ Foo doc comment
278- \\
279277 \\```zig
280278 \\const FooStruct = struct {
281279 \\ bar: u32,
@@ -286,6 +284,8 @@ test "struct" {
286284 \\```zig
287285 \\(type)
288286 \\```
287+ \\
288+ \\Foo doc comment
289289 );
290290 try testHover (
291291 \\const Edge<cursor>Cases = struct {
@@ -691,14 +691,14 @@ test "function parameter" {
691691 \\ return a;
692692 \\}
693693 ,
694- \\ hello world
695- \\
696694 \\```zig
697695 \\a: u32
698696 \\```
699697 \\```zig
700698 \\(u32)
701699 \\```
700+ \\
701+ \\hello world
702702 );
703703}
704704
@@ -748,23 +748,23 @@ test "either types" {
748748 \\const either = if (undefined) A else B;
749749 \\const bar = either.<cursor>T;
750750 ,
751- \\small type
752- \\
753751 \\```zig
754752 \\const T = u32
755753 \\```
756754 \\```zig
757755 \\(type)
758756 \\```
759757 \\
760- \\large type
758+ \\small type
761759 \\
762760 \\```zig
763761 \\const T = u64
764762 \\```
765763 \\```zig
766764 \\(type)
767765 \\```
766+ \\
767+ \\large type
768768 );
769769 try testHoverWithOptions (
770770 \\const A = struct {
@@ -778,15 +778,15 @@ test "either types" {
778778 \\const either = if (undefined) A else B;
779779 \\const bar = either.<cursor>T;
780780 ,
781- \\small type
782- \\
783781 \\const T = u32
784782 \\(type)
785783 \\
786- \\large type
784+ \\small type
787785 \\
788786 \\const T = u64
789787 \\(type)
788+ \\
789+ \\large type
790790 , .{ .markup_kind = .plaintext });
791791}
792792
@@ -795,14 +795,14 @@ test "var decl comments" {
795795 \\///this is a comment
796796 \\const f<cursor>oo = 0 + 0;
797797 ,
798- \\this is a comment
799- \\
800798 \\```zig
801799 \\const foo = 0 + 0
802800 \\```
803801 \\```zig
804802 \\(comptime_int)
805803 \\```
804+ \\
805+ \\this is a comment
806806 );
807807}
808808
@@ -931,16 +931,16 @@ test "combine doc comments of declaration and definition" {
931931 \\ const baz = struct {};
932932 \\};
933933 ,
934- \\ Foo
935- \\
936- \\ Bar
937- \\
938934 \\```zig
939935 \\const baz = struct
940936 \\```
941937 \\```zig
942938 \\(type)
943939 \\```
940+ \\
941+ \\Foo
942+ \\
943+ \\Bar
944944 );
945945 try testHoverWithOptions (
946946 \\/// Foo
@@ -950,12 +950,12 @@ test "combine doc comments of declaration and definition" {
950950 \\ const baz = struct {};
951951 \\};
952952 ,
953- \\ Foo
954- \\
955- \\ Bar
956- \\
957953 \\const baz = struct
958954 \\(type)
955+ \\
956+ \\Foo
957+ \\
958+ \\Bar
959959 , .{ .markup_kind = .plaintext });
960960}
961961
@@ -966,16 +966,16 @@ test "top-level doc comment" {
966966 \\/// A
967967 \\const S<cursor>elf = @This();
968968 ,
969- \\ A
970- \\
971- \\ B
972- \\
973969 \\```zig
974970 \\const Self = @This()
975971 \\```
976972 \\```zig
977973 \\(type)
978974 \\```
975+ \\
976+ \\A
977+ \\
978+ \\B
979979 );
980980}
981981
0 commit comments