feat: update flow-syntax to add syntax highlighting of embedded documents (injections)
This commit is contained in:
parent
cdc026525b
commit
634f453e38
2 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue