Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
- x86_64-windows-msvc
# - aarch64-windows-gnu
- aarch64-macos-none
- x86_64-macos-none
wasm:
- "true"
- "false"
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/node.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
Expand Down
2 changes: 1 addition & 1 deletion src/query_cursor.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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],
};
}
};
Expand Down