hecto/src/highlighting.rs

17 lines
283 B
Rust
Raw Normal View History

2021-03-15 13:53:30 -04:00
use termion::color;
2021-03-15 14:37:41 -04:00
#[derive(PartialEq)]
2021-03-15 13:53:30 -04:00
pub enum Type {
None,
Number,
}
impl Type {
pub fn to_color(&self) -> impl color::Color {
match self {
Type::Number => color::Rgb(220, 163, 163),
_ => color::Rgb(255, 255, 255),
}
}
}