Skip to content

Commit 8cb16ba

Browse files
committed
update to Zig 0.15.0
1 parent 0daae52 commit 8cb16ba

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

build.zig.zon

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .superhtml,
33
.version = "0.4.0",
44
.fingerprint = 0xc5e9aede3c1db363,
5-
.minimum_zig_version = "0.15.0-dev.1413+fcb088cb6",
5+
.minimum_zig_version = "0.15.0",
66
.dependencies = .{
77
.afl_kit = .{
88
.url = "git+https://github.com/kristoff-it/zig-afl-kit#8ef04d1db48650345dca68da1e1b8f2615125c40",
@@ -18,12 +18,12 @@
1818
.hash = "tracy-0.0.0-4Xw-1pwwAABTfMgoDP1unCbZDZhJEfict7XCBGF6IdIn",
1919
},
2020
.lsp_kit = .{
21-
.url = "git+https://github.com/zigtools/lsp-kit#33f2563aba7b49b9747ee272de3f1143b90f1e64",
22-
.hash = "lsp_kit-0.1.0-bi_PLwouCgASnviwDjnUABTBF4NTymYi2QT1wopygXNw",
21+
.url = "git+https://github.com/kristoff-it/lsp-kit?ref=zig-0.15#01c14e592d25dc57dfebba27b8bd2b4aa91c1140",
22+
.hash = "lsp_kit-0.1.0-bi_PL5YyCgA2QFEza6llr2Uy08QUQsWBu2wKvtr8tbLx",
2323
},
2424
.scripty = .{
25-
.url = "git+https://github.com/kristoff-it/scripty#76581b7e442f98e2a73769125fa68f07d2a7841b",
26-
.hash = "scripty-0.1.0-LKK5O6T4AADsciwZGm29PGEI4kwVR5cKOZGIdCGMTTi4",
25+
.url = "git+https://github.com/kristoff-it/scripty#50dbab8945440089384f26ec165d870c29555247",
26+
.hash = "scripty-0.1.0-LKK5O7v4AADWWXuFcTJky_5sY12tmw3kRi3k2wkpfxAX",
2727
},
2828
},
2929
.paths = .{

src/Ast.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ test "siblings" {
11951195
\\)
11961196
\\
11971197
;
1198-
try std.testing.expectEqualStrings(ex, out.getWritten());
1198+
try std.testing.expectEqualStrings(ex, out.written());
11991199
}
12001200

12011201
test "nesting" {
@@ -1232,7 +1232,7 @@ test "nesting" {
12321232
\\)
12331233
\\
12341234
;
1235-
try std.testing.expectEqualStrings(ex, out.getWritten());
1235+
try std.testing.expectEqualStrings(ex, out.written());
12361236
}
12371237

12381238
test "deeper nesting" {
@@ -1269,7 +1269,7 @@ test "deeper nesting" {
12691269
\\)
12701270
\\
12711271
;
1272-
try std.testing.expectEqualStrings(ex, out.getWritten());
1272+
try std.testing.expectEqualStrings(ex, out.written());
12731273
}
12741274

12751275
test "complex example" {
@@ -1320,7 +1320,7 @@ test "complex example" {
13201320
\\)
13211321
\\
13221322
;
1323-
try std.testing.expectEqualStrings(ex, out.getWritten());
1323+
try std.testing.expectEqualStrings(ex, out.written());
13241324
}
13251325

13261326
test "if-else-loop errors" {
@@ -1392,7 +1392,7 @@ test "super" {
13921392
\\)
13931393
\\
13941394
;
1395-
try std.testing.expectEqualStrings(ex, out.getWritten());
1395+
try std.testing.expectEqualStrings(ex, out.written());
13961396

13971397
const cex: usize = 2;
13981398
try std.testing.expectEqual(cex, tree.childrenCount(tree.child(r).?));

src/cli/lsp.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub fn @"textDocument/formatting"(
252252

253253
return try arena.dupe(types.TextEdit, &.{.{
254254
.range = range,
255-
.newText = aw.getWritten(),
255+
.newText = aw.written(),
256256
}});
257257
}
258258

src/html/Ast.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@ pub fn init(
336336
) error{OutOfMemory}!Ast {
337337
if (src.len > std.math.maxInt(u32)) @panic("too long");
338338

339-
var nodes = std.ArrayList(Node).init(gpa);
339+
var nodes = std.array_list.Managed(Node).init(gpa);
340340
errdefer nodes.deinit();
341341

342-
var errors = std.ArrayList(Error).init(gpa);
342+
var errors = std.array_list.Managed(Error).init(gpa);
343343
errdefer errors.deinit();
344344

345345
var seen_attrs = std.StringHashMap(void).init(gpa);

0 commit comments

Comments
 (0)