summaryrefslogtreecommitdiff
path: root/src/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/File.zig')
-rw-r--r--src/File.zig8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/File.zig b/src/File.zig
index 05e5271c..dc7b4cf8 100644
--- a/src/File.zig
+++ b/src/File.zig
@@ -1830,13 +1830,7 @@ pub const DiffTints = struct {
};
fn synStyle(p: *Pardes, sy: syntax.Syn) ?SynStyle {
- return switch (sy) {
- .none => null,
- .keyword => .{ .fg = p.theme().kw, .bold = false },
- .string => .{ .fg = p.theme().str, .bold = false },
- .number => .{ .fg = p.theme().num, .bold = false },
- .comment => .{ .fg = p.theme().comment, .bold = false },
- };
+ return .{ .fg = Colors.synInk(p.theme(), sy) orelse return null, .bold = false };
}
/// syntax colors: recolor each content cell from its tree-sitter style byte;