summaryrefslogtreecommitdiff
path: root/src/indent.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/indent.zig')
-rw-r--r--src/indent.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.zig b/src/indent.zig
index fc2df450..bf52800c 100644
--- a/src/indent.zig
+++ b/src/indent.zig
@@ -335,7 +335,7 @@ fn expectIndent(path: []const u8, marked: []const u8, want: []const u8) !void {
var arena: std.heap.ArenaAllocator = .init(std.testing.allocator);
defer arena.deinit();
const text = try std.mem.concat(arena.allocator(), u8, &.{ marked[0..cut], marked[cut + 1 ..] });
- const tree = syntax.parseTree(path, text) orelse return error.NoTree;
+ const tree = syntax.parseTree(path, text, null) orelse return error.NoTree;
defer syntax.destroyTree(tree);
const got = try forNewline(arena.allocator(), l, tree, text, std.mem.count(u8, text[0..cut], "\n"), cut);
try std.testing.expectEqualStrings(want, got orelse return error.NoIndent);