Skip to content

Commit ec3f43b

Browse files
authored
fix: consider color range 0x08.. - 0x0f.. in bat themes (mfontanini#706)
Closes mfontanini#702
2 parents 68b7b21 + 9273a94 commit ec3f43b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/code/highlighting.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,14 @@ fn parse_color(color: syntect::highlighting::Color) -> Option<Color> {
243243
0x05 => Color::DarkMagenta,
244244
0x06 => Color::DarkCyan,
245245
0x07 => Color::Grey,
246+
0x08 => Color::DarkGrey,
247+
0x09 => Color::Red,
248+
0x0a => Color::Green,
249+
0x0b => Color::Yellow,
250+
0x0c => Color::Blue,
251+
0x0d => Color::Magenta,
252+
0x0e => Color::Cyan,
253+
0x0f => Color::White,
246254
n => Color::from_ansi(n)?,
247255
})
248256
} else if color.a == 1 {

0 commit comments

Comments
 (0)