summaryrefslogtreecommitdiff
path: root/src/grammar_manifest.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 12:14:58 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commit77671575bd2f481651ea54e956ac5c7da8d63710 (patch)
treedef07749c63bdc279e0119d58101aa1399dd5cf3 /src/grammar_manifest.zig
parentb5bb5e8ccf71a5755dde95f04440ee9c6aaa18da (diff)
downloadpardes-77671575bd2f481651ea54e956ac5c7da8d63710.tar.gz
pardes-77671575bd2f481651ea54e956ac5c7da8d63710.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/grammar_manifest.zig')
-rw-r--r--src/grammar_manifest.zig2
1 files changed, 1 insertions, 1 deletions
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;