add new lang in code
@@ -32,6 +32,7 @@ pub enum Language {
ObjectiveC,
Perl,
Php,
+ Prolog,
PureScript,
Python,
R,
@@ -83,6 +84,7 @@ impl std::fmt::Display for Language {
Language::Scala => write!(f, "Scala"),
Language::Shell => write!(f, "Shell"),
Language::Swift => write!(f, "Swift"),
+ Language::Prolog => write!(f, "Prolog"),
Language::Perl => write!(f, "Perl"),
Language::Php => write!(f, "Php"),
Language::Tcl => write!(f, "Tcl"),
@@ -123,6 +125,7 @@ impl From<tokei::LanguageType> for Language {
tokei::LanguageType::Lua => Language::Lua,
tokei::LanguageType::Nim => Language::Nim,
tokei::LanguageType::ObjectiveC => Language::ObjectiveC,
+ tokei::LanguageType::Prolog => Language::Prolog,
tokei::LanguageType::Perl => Language::Perl,
tokei::LanguageType::Php => Language::Php,
tokei::LanguageType::PureScript => Language::PureScript,
@@ -172,6 +175,7 @@ impl Language {
Language::ObjectiveC => include_str!("../resources/objectivec.ascii"),
Language::Perl => include_str!("../resources/perl.ascii"),
Language::Php => include_str!("../resources/php.ascii"),
+ Language::Prolog => include_str!("../resource/prolog.ascii"),
Language::PureScript => include_str!("../resources/purescript.ascii"),
Language::Python => include_str!("../resources/python.ascii"),
Language::R => include_str!("../resources/r.ascii"),
@@ -218,6 +222,7 @@ impl Language {
Language::ObjectiveC => vec![Color::BrightBlue, Color::Blue],
Language::Perl => vec![Color::BrightBlue],
Language::Php => vec![Color::BrightWhite],
+ Language::Prolog => vec![Color::White],
Language::PureScript => vec![Color::White],
Language::Python => vec![Color::Blue, Color::Yellow],
Language::R => vec![Color::White, Color::Blue],
@@ -318,6 +323,7 @@ fn get_all_language_types() -> Vec<tokei::LanguageType> {
tokei::LanguageType::ObjectiveC,
tokei::LanguageType::Perl,
tokei::LanguageType::Php,
+ tokei::LanguageType::Prolog,
tokei::LanguageType::PureScript,
tokei::LanguageType::Python,
tokei::LanguageType::R,
