feat: update flow-syntax to add syntax highlighting of embedded documents (injections)

This commit is contained in:
CJ van den Berg 2026-02-21 21:32:24 +01:00
parent cdc026525b
commit 634f453e38
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 4 additions and 4 deletions

View file

@ -6,8 +6,8 @@
.dependencies = .{ .dependencies = .{
.syntax = .{ .syntax = .{
.url = "git+https://github.com/neurocyte/flow-syntax?ref=master#ad07bfe4f9fa9d855bc6c468d7be1dec7234a0c1", .url = "git+https://github.com/neurocyte/flow-syntax?ref=master#02c26ba48fbc962058097feb53dd15f2750b6dc9",
.hash = "flow_syntax-0.7.2-X8jOoUMaAQBMTjofnuE0qZRGOxUPFhcndEOk-kru-0fn", .hash = "flow_syntax-0.7.2-X8jOobBCAQArXM2P0pqy2RXieTrYu2RbCo7FOO8NWvfv",
}, },
.flags = .{ .flags = .{
.url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11", .url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11",

View file

@ -656,7 +656,7 @@ pub const Editor = struct {
if (self.completions_request) |*p| p.deinit(self.allocator); if (self.completions_request) |*p| p.deinit(self.allocator);
self.changes.deinit(self.allocator); self.changes.deinit(self.allocator);
self.clear_event_triggers(); self.clear_event_triggers();
if (self.syntax) |syn| syn.destroy(tui.query_cache()); if (self.syntax) |syn| syn.destroy();
self.cancel_all_tabstops(); self.cancel_all_tabstops();
self.cursels.deinit(self.allocator); self.cursels.deinit(self.allocator);
self.matches.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)})) if (!try ctx.args.match(.{tp.extract(&file_type)}))
return error.InvalidSetFileTypeArgument; 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_last_rendered_root = null;
self.syntax_refresh_full = true; self.syntax_refresh_full = true;
self.syntax_incremental_reparse = false; self.syntax_incremental_reparse = false;