diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9545d74..40fcd5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,6 @@ jobs: - x86_64-windows-msvc # - aarch64-windows-gnu - aarch64-macos-none - - x86_64-macos-none wasm: - "true" - "false" @@ -56,8 +55,6 @@ jobs: # target: aarch64-windows-gnu - os: macos-15 target: aarch64-macos-none - - os: macos-13 - target: x86_64-macos-none exclude: # doesn't build - target: x86_64-windows-msvc diff --git a/src/node.zig b/src/node.zig index 0bca5fe..1e75a8a 100644 --- a/src/node.zig +++ b/src/node.zig @@ -386,10 +386,10 @@ pub const Node = extern struct { /// Format the node as a string. pub fn format(self: Node, writer: *std.Io.Writer) !void { try writer.print( - "Node(id=0x{x}, type={s}, start={d}, end={d})", + "Node(id=0x{x}, kind={s}, start={d}, end={d})", .{ @intFromPtr(self.id), - self.type(), + self.kind(), self.startByte(), self.endByte(), }, diff --git a/src/query_cursor.zig b/src/query_cursor.zig index ccb5404..9e540a1 100644 --- a/src/query_cursor.zig +++ b/src/query_cursor.zig @@ -12,7 +12,7 @@ const QueryMatch = extern struct { return .{ .id = self.id, .pattern_index = self.pattern_index, - .captures = self.captures[0..self.capture_count], + .captures = if (self.capture_count == 0) &[_]Query.Capture{} else self.captures[0..self.capture_count], }; } };