summaryrefslogtreecommitdiff
path: root/src/syntax.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.zig')
-rw-r--r--src/syntax.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syntax.zig b/src/syntax.zig
index 821754fa..985a9888 100644
--- a/src/syntax.zig
+++ b/src/syntax.zig
@@ -344,6 +344,7 @@ pub fn highlightApart(gpa: std.mem.Allocator, path: []const u8, source: []const
.{ .payload = @constCast(halt), .progress_callback = @ptrCast(&Reader.progress) },
) orelse return error.Canceled;
defer tree.destroy();
+ if (halt.load(.monotonic)) return error.Canceled;
const styles = try gpa.alloc(u8, source.len);
@memset(styles, 0);
var own = shared;