@@ -859,7 +859,7 @@ test "either types" {
859859 \\const T = u32
860860 \\```
861861 \\```zig
862- \\(type)
862+ \\(type = u32 )
863863 \\```
864864 \\
865865 \\small type
@@ -868,7 +868,7 @@ test "either types" {
868868 \\const T = u64
869869 \\```
870870 \\```zig
871- \\(type)
871+ \\(type = u64 )
872872 \\```
873873 \\
874874 \\large type
@@ -886,12 +886,12 @@ test "either types" {
886886 \\const bar = either.<cursor>T;
887887 ,
888888 \\const T = u32
889- \\(type)
889+ \\(type = u32 )
890890 \\
891891 \\small type
892892 \\
893893 \\const T = u64
894- \\(type)
894+ \\(type = u64 )
895895 \\
896896 \\large type
897897 , .{ .markup_kind = .plaintext });
@@ -902,7 +902,8 @@ test "either type instances" {
902902 \\const EitherType<cursor> = if (undefined) u32 else f64;
903903 ,
904904 \\const EitherType = if (undefined) u32 else f64
905- \\(type)
905+ \\(type = u32)
906+ \\(type = f64)
906907 , .{ .markup_kind = .plaintext });
907908 try testHoverWithOptions (
908909 \\const EitherType = if (undefined) u32 else f64;
@@ -1009,9 +1010,9 @@ test "either type instances" {
10091010 \\ .d => {},
10101011 \\ .e => error.Foo,
10111012 \\}
1012- \\(comptime_int)
1013- \\(bool)
1014- \\(comptime_float)
1013+ \\(comptime_int = 42 )
1014+ \\(bool = true )
1015+ \\(comptime_float = 3.14 )
10151016 \\(...)
10161017 , .{ .markup_kind = .plaintext });
10171018}
@@ -1058,7 +1059,7 @@ test "var decl comments" {
10581059 \\const foo = 0 + 0
10591060 \\```
10601061 \\```zig
1061- \\(comptime_int)
1062+ \\(comptime_int = 0 )
10621063 \\```
10631064 \\
10641065 \\this is a comment
@@ -1085,7 +1086,7 @@ test "var decl alias" {
10851086 \\const foo = 5
10861087 \\```
10871088 \\```zig
1088- \\(comptime_int)
1089+ \\(comptime_int = 5 )
10891090 \\```
10901091 );
10911092}
@@ -1108,7 +1109,7 @@ test "escaped identifier" {
11081109 \\const @"foo" = 42
11091110 \\```
11101111 \\```zig
1111- \\(comptime_int)
1112+ \\(comptime_int = 42 )
11121113 \\```
11131114 , .{
11141115 .highlight = "@\" foo\" " ,
@@ -1121,7 +1122,7 @@ test "escaped identifier" {
11211122 \\const @"hello world" = 42
11221123 \\```
11231124 \\```zig
1124- \\(comptime_int)
1125+ \\(comptime_int = 42 )
11251126 \\```
11261127 , .{
11271128 .highlight = "@\" hello world\" " ,
@@ -1134,7 +1135,7 @@ test "escaped identifier" {
11341135 \\const @"hello world" = 42
11351136 \\```
11361137 \\```zig
1137- \\(comptime_int)
1138+ \\(comptime_int = 42 )
11381139 \\```
11391140 , .{
11401141 .highlight = "@\" hello world\" " ,
@@ -1150,7 +1151,7 @@ test "escaped identifier with same name as primitive" {
11501151 \\const @"true" = 42
11511152 \\```
11521153 \\```zig
1153- \\(comptime_int)
1154+ \\(comptime_int = 42 )
11541155 \\```
11551156 , .{
11561157 .highlight = "@\" true\" " ,
@@ -1163,7 +1164,7 @@ test "escaped identifier with same name as primitive" {
11631164 \\const @"f32" = 42
11641165 \\```
11651166 \\```zig
1166- \\(comptime_int)
1167+ \\(comptime_int = 42 )
11671168 \\```
11681169 , .{
11691170 .highlight = "@\" f32\" " ,
@@ -1318,7 +1319,7 @@ test "array properties" {
13181319 \\const bar = foo.len<cursor>;
13191320 ,
13201321 \\len
1321- \\(usize)
1322+ \\(usize = 3 )
13221323 , .{ .markup_kind = .plaintext });
13231324}
13241325
@@ -1328,7 +1329,7 @@ test "tuple properties" {
13281329 \\const bar = foo.len<cursor>;
13291330 ,
13301331 \\len
1331- \\(usize)
1332+ \\(usize = 2 )
13321333 , .{ .markup_kind = .plaintext });
13331334 try testHoverWithOptions (
13341335 \\const foo: struct { i32, bool } = undefined;
0 commit comments