refactor: migrate to flow-syntax

This commit is contained in:
CJ van den Berg 2024-03-06 20:04:41 +01:00
parent 87446df0ca
commit a98e9f9f2c
6 changed files with 7 additions and 615 deletions

View file

@ -109,7 +109,7 @@ fn render_file(a: std.mem.Allocator, writer: anytype, content: []const u8, file_
content: []const u8,
theme: *const Theme,
last_pos: usize = 0,
fn cb(ctx: *@This(), range: syntax.Range, scope: []const u8, id: u32, idx: usize) error{Stop}!void {
fn cb(ctx: *@This(), range: syntax.Range, scope: []const u8, id: u32, idx: usize, _: *const syntax.Node) error{Stop}!void {
if (idx > 0) return;
if (ctx.last_pos < range.start_byte) {