Skip to content

Commit

Permalink
fix: Fix search paths
Browse files Browse the repository at this point in the history
  • Loading branch information
giann committed Jul 26, 2023
1 parent c4a403d commit 4b6cca8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ pub const Parser = struct {
"./?/main.x",
"./?/src/main.x",
"./?/src/?.x",
"/usr/share/buzz/x/?.x",
"/usr/share/buzz/x/?/main.x",
"/usr/share/buzz/x/?/src/main.x",
"/usr/local/share/buzz/x/?/src/?.x",
"/usr/local/share/buzz/x/?.x",
"/usr/local/share/buzz/x/?/main.x",
"/usr/local/share/buzz/x/?/src/main.x",
"/usr/local/share/buzz/x/?/src/?.x",
"/usr/share/buzz/?.x",
"/usr/share/buzz/?/main.x",
"/usr/share/buzz/?/src/main.x",
"/usr/local/share/buzz/?/src/?.x",
"/usr/local/share/buzz/?.x",
"/usr/local/share/buzz/?/main.x",
"/usr/local/share/buzz/?/src/main.x",
"/usr/local/share/buzz/?/src/?.x",
"$/?.x",
"$/?/main.x",
"$/?/src/?.x",
Expand All @@ -283,10 +283,10 @@ pub const Parser = struct {
const lib_search_paths = [_][]const u8{
"./lib?.x",
"./?/src/lib?.x",
"/usr/share/buzz/x/lib?.x",
"/usr/share/buzz/x/?/src/lib?.x",
"/usr/share/local/buzz/x/lib?.x",
"/usr/share/local/buzz/x/?/src/lib?.x",
"/usr/share/buzz/lib?.x",
"/usr/share/buzz/?/src/lib?.x",
"/usr/share/local/buzz/lib?.x",
"/usr/share/local/buzz/?/src/lib?.x",
"$/lib?.x",
"$/?/src/lib?.x",
};
Expand Down
2 changes: 1 addition & 1 deletion tests/compile_errors/003-unresolved-placeholders.buzz
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
| `joe` is not defined
| `print` is not defined
import "std";
import "tests/compile_errors/utils/bad-import";

Expand Down

0 comments on commit 4b6cca8

Please sign in to comment.