From 77671575bd2f481651ea54e956ac5c7da8d63710 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 12:14:58 -0300 Subject: idioms #1, std.fs's deprecated aliases in the hosts: std.fs.path and std.fs.max_path_bytes are std.Io.Dir.path and std.Io.Dir.max_path_bytes in 0.17, so the hosts name them there Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/grammar_manifest.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/grammar_manifest.zig') diff --git a/src/grammar_manifest.zig b/src/grammar_manifest.zig index d6666729..38c54916 100644 --- a/src/grammar_manifest.zig +++ b/src/grammar_manifest.zig @@ -87,7 +87,7 @@ pub fn byName(name: []const u8) ?usize { /// The grammar a path's extension selects, in any case. pub fn byPath(path: []const u8) ?usize { - const ext = std.fs.path.extension(path); + const ext = std.Io.Dir.path.extension(path); if (ext.len == 0) return null; for (all, 0..) |g, i| for (g.exts) |e| if (std.ascii.eqlIgnoreCase(ext, e)) return i; return null; -- cgit v1.3