Skip to content

Commit 19ad42b

Browse files
committed
YOLO no stage1
1 parent 109cca0 commit 19ad42b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pub fn build(b: *std.build.Builder) void {
1212
const mode = b.standardReleaseOptions();
1313

1414
const exe = b.addExecutable("scip-zig", "src/main.zig");
15-
exe.use_stage1 = true;
1615
exe.setTarget(target);
1716
exe.setBuildMode(mode);
1817
exe.install();

src/analysis/utils.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ fn collectDocComments(allocator: std.mem.Allocator, tree: Ast, doc_comments: Ast
13621362
while (true) : (curr_line_tok += 1) {
13631363
const comm = tokens[curr_line_tok];
13641364
if ((container_doc and comm == .container_doc_comment) or (!container_doc and comm == .doc_comment)) {
1365-
try lines.append(allocator, std.mem.trim(u8, tree.tokenSlice(curr_line_tok)[3..], &std.ascii.spaces));
1365+
try lines.append(allocator, std.mem.trim(u8, tree.tokenSlice(curr_line_tok)[3..], &std.ascii.whitespace));
13661366
} else break;
13671367
}
13681368

@@ -1407,7 +1407,7 @@ pub fn fromPath(allocator: std.mem.Allocator, path: []const u8) ![]const u8 {
14071407
// On windows, we need to lowercase the drive name.
14081408
if (builtin.os.tag == .windows) {
14091409
if (buf.items.len > prefix.len + 1 and
1410-
std.ascii.isAlpha(buf.items[prefix.len]) and
1410+
std.ascii.isAlphabetic(buf.items[prefix.len]) and
14111411
std.mem.startsWith(u8, buf.items[prefix.len + 1 ..], "%3A"))
14121412
{
14131413
buf.items[prefix.len] = std.ascii.toLower(buf.items[prefix.len]);

0 commit comments

Comments
 (0)