Skip to content

Commit

Permalink
Update language.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanon42 authored Oct 24, 2019
1 parent e15894c commit c763738
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub enum Language {
Elm,
Erlang,
Forth,
FSharp,
Go,
Haskell,
HTML,
Expand Down Expand Up @@ -64,6 +65,7 @@ impl std::fmt::Display for Language {
Language::Elm => write!(f, "Elm"),
Language::Erlang => write!(f, "Erlang"),
Language::Forth => write!(f, "Forth"),
Language::FSharp => write!(f, "FSharp"),
Language::Go => write!(f, "Go"),
Language::Haskell => write!(f, "Haskell"),
Language::HTML => write!(f, "HTML"),
Expand Down Expand Up @@ -112,6 +114,7 @@ impl From<tokei::LanguageType> for Language {
tokei::LanguageType::Elm => Language::Elm,
tokei::LanguageType::Erlang => Language::Erlang,
tokei::LanguageType::Forth => Language::Forth,
tokei::LanguageType::FSharp => Language::FSharp,
tokei::LanguageType::Go => Language::Go,
tokei::LanguageType::Haskell => Language::Haskell,
tokei::LanguageType::Html => Language::HTML,
Expand Down Expand Up @@ -159,6 +162,7 @@ impl Language {
Language::Elm => include_str!("../resources/elm.ascii"),
Language::Erlang => include_str!("../resources/erlang.ascii"),
Language::Forth => include_str!("../resources/forth.ascii"),
Language::FSharp => include_str!("../resources/fsharp.ascii"),
Language::Go => include_str!("../resources/go.ascii"),
Language::Haskell => include_str!("../resources/haskell.ascii"),
Language::HTML => include_str!("../resources/html.ascii"),
Expand Down Expand Up @@ -205,6 +209,7 @@ impl Language {
Language::Elm => vec![Color::BrightBlack, Color::Green, Color::Yellow, Color::Cyan],
Language::Erlang => vec![Color::BrightRed],
Language::Forth => vec![Color::BrightRed],
Language::FSharp => vec![Color::White, Color::BrightBlue],
Language::Go => vec![Color::White],
Language::Haskell => vec![Color::BrightBlue, Color::BrightMagenta, Color::Blue],
Language::HTML => vec![Color::Red, Color::White],
Expand Down Expand Up @@ -305,6 +310,7 @@ fn get_all_language_types() -> Vec<tokei::LanguageType> {
tokei::LanguageType::Elm,
tokei::LanguageType::Erlang,
tokei::LanguageType::Forth,
tokei::LanguageType::FSharp,
tokei::LanguageType::Go,
tokei::LanguageType::Haskell,
tokei::LanguageType::Html,
Expand Down

0 comments on commit c763738

Please sign in to comment.