diff --git a/build.zig.zon b/build.zig.zon index 6fed0a7..bd7db6a 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -6,8 +6,8 @@ .dependencies = .{ .syntax = .{ - .url = "git+https://github.com/neurocyte/flow-syntax?ref=master#ad07bfe4f9fa9d855bc6c468d7be1dec7234a0c1", - .hash = "flow_syntax-0.7.2-X8jOoUMaAQBMTjofnuE0qZRGOxUPFhcndEOk-kru-0fn", + .url = "git+https://github.com/neurocyte/flow-syntax?ref=master#02c26ba48fbc962058097feb53dd15f2750b6dc9", + .hash = "flow_syntax-0.7.2-X8jOobBCAQArXM2P0pqy2RXieTrYu2RbCo7FOO8NWvfv", }, .flags = .{ .url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11", diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 1f28336..ef10ce6 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -656,7 +656,7 @@ pub const Editor = struct { if (self.completions_request) |*p| p.deinit(self.allocator); self.changes.deinit(self.allocator); self.clear_event_triggers(); - if (self.syntax) |syn| syn.destroy(tui.query_cache()); + if (self.syntax) |syn| syn.destroy(); self.cancel_all_tabstops(); self.cursels.deinit(self.allocator); self.matches.deinit(self.allocator); @@ -7217,7 +7217,7 @@ pub const Editor = struct { if (!try ctx.args.match(.{tp.extract(&file_type)})) return error.InvalidSetFileTypeArgument; - if (self.syntax) |syn| syn.destroy(tui.query_cache()); + if (self.syntax) |syn| syn.destroy(); self.syntax_last_rendered_root = null; self.syntax_refresh_full = true; self.syntax_incremental_reparse = false;