diff --git a/build.zig b/build.zig index 106c69c..d0769eb 100644 --- a/build.zig +++ b/build.zig @@ -60,4 +60,10 @@ fn add_themes(b: *std.Build, exe: anytype) void { theme_file(b, exe, "tokyo_night", "themes/tokyo-night-storm-color-theme.json"); theme_file(b, exe, "tokyo_night", "themes/tokyo-night-color-theme.json"); theme_file(b, exe, "tokyo_night", "themes/tokyo-night-light-color-theme.json"); + theme_file(b, exe, "ayu", "ayu-dark.json"); + theme_file(b, exe, "ayu", "ayu-dark-bordered.json"); + theme_file(b, exe, "ayu", "ayu-mirage.json"); + theme_file(b, exe, "ayu", "ayu-mirage-bordered.json"); + theme_file(b, exe, "ayu", "ayu-light.json"); + theme_file(b, exe, "ayu", "ayu-light-bordered.json"); } diff --git a/build.zig.zon b/build.zig.zon index 559e7e4..0db7096 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -37,6 +37,10 @@ .url = "https://github.com/enkia/tokyo-night-vscode-theme/archive/55336bd57924021c174470d9f476a1db01eddb97.tar.gz", .hash = "1220f9729cd271c29dee0e199b2bc0f801cb657b603668680a07191b9a8c1b1f21fb", }, + .theme_ayu = .{ + .url = "https://github.com/ayu-theme/vscode-ayu/archive/91839e8a9dfa78d61e58dbcf9b52272a01fee66a.tar.gz", + .hash = "1220217a9a25d48cd61948f3455d08d4f64ed2c72e79f3257a9f28c746eb1432af27", + }, }, .paths = .{ "build.zig", diff --git a/src/compile.zig b/src/compile.zig index b9f3972..46896fc 100644 --- a/src/compile.zig +++ b/src/compile.zig @@ -184,6 +184,8 @@ fn load_token_settings_object(file_name: []const u8, scopes_name: ?[]const u8, c style.fs = .italic; } else if (eql(u8, "strikethrough", value)) { style.fs = .strikethrough; + } else if (eql(u8, "normal", value)) { + style.fs = .normal; } else if (eql(u8, "", value)) { style.fs = .normal; } else { diff --git a/src/theme_files.zig b/src/theme_files.zig index 923bd75..325bc9a 100644 --- a/src/theme_files.zig +++ b/src/theme_files.zig @@ -36,8 +36,15 @@ pub const theme_files = [_]theme_file{ THEME("themes/tokyo-night-storm-color-theme.json"), THEME("themes/tokyo-night-color-theme.json"), THEME("themes/tokyo-night-light-color-theme.json"), + THEME("ayu-dark.json"), + THEME("ayu-dark-bordered.json"), + THEME("ayu-mirage.json"), + THEME("ayu-mirage-bordered.json"), + THEME("ayu-light.json"), + THEME("ayu-light-bordered.json"), }; fn THEME(comptime file_path: []const u8) theme_file { + @setEvalBranchQuota(2000); return .{ .file_name = std.fs.path.basename(file_path), .json = @embedFile(file_path) }; }