fn color(hl: Highlight) -> u8 {
        match hl {
            Highlight::Number => 31, // red
            Highlight::Match => 34, // blue
            Highlight::Strings => 35, // magenta
            Highlight::Comment => 36, // cyan
            Highlight::Keyword1 => 33, //yellow
            Highlight::Keyword2 => 32, //green
            Highlight::Normal => 37,
        }
    }
/// Map a syntax color type from the Highlight enum to
/// an ansi code
Map a syntax color type from the Highlight enum to
an ansi code
Map a syntax color type from the Highlight enum to an ansi code
fn color(hl: Highlight) -> u8 {
        match hl {
            Highlight::Number => 31, // red
            Highlight::Match => 34, // blue
            Highlight::Strings => 35, // magenta
            Highlight::Comment => 36, // cyan
            Highlight::Keyword1 => 33, //yellow
            Highlight::Keyword2 => 32, //green
            Highlight::Normal => 37,
        }
    }
fn color ( hl : Highlight ) -> u8 { match hl { Highlight :: Number => 31 , // red Highlight :: Match => 34 , // blue Highlight :: Strings => 35 , // magenta Highlight :: Comment => 36 , // cyan Highlight :: Keyword1 => 33 , //yellow Highlight :: Keyword2 => 32 , //green Highlight :: Normal => 37 , } }
Map a syntax color type from the Highlight enum to
an ansi code
Map a syntax color type from the Highlight enum to an ansi code
hl
Highlight