Skip to content

Commit

Permalink
added xml ascii art
Browse files Browse the repository at this point in the history
  • Loading branch information
tacrazymage committed Oct 14, 2019
1 parent 4d56dbb commit e7e25ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/xml.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{0} __{1} __ _ __ __ _ {0} ____
{0} / /{1} \ \/ | \ \| | {0} / /\ \
{0}< < {1} \ \ | || |_ {0} / / > >
{0} \_\{1} _/\_\ |_|_|_||___| {0}/_/ /_/
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ enum Language {
Vue,
Perl,
Php,
XML,
Zig,
Unknown
}
Expand Down Expand Up @@ -434,6 +435,7 @@ impl fmt::Display for Language {
Language::Vue => write!(f, "Vue"),
Language::Perl => write!(f, "Perl"),
Language::Php => write!(f, "Php"),
Language::XML => write!(f, "XML"),
Language::Zig => write!(f, "Zig"),
Language::Unknown => write!(f, "Unknown"),
}
Expand Down Expand Up @@ -941,6 +943,7 @@ impl From<tokei::LanguageType> for Language {
tokei::LanguageType::Vue => Language::Vue,
tokei::LanguageType::Perl => Language::Perl,
tokei::LanguageType::Php => Language::Php,
tokei::LanguageType::Xml => Language::XML,
tokei::LanguageType::Zig => Language::Zig,
_ => unimplemented!(),
}
Expand Down Expand Up @@ -984,6 +987,7 @@ fn get_all_language_types() -> Vec<tokei::LanguageType> {
tokei::LanguageType::Vue,
tokei::LanguageType::Perl,
tokei::LanguageType::Php,
tokei::LanguageType::Xml,
tokei::LanguageType::Zig,
]
}
Expand Down Expand Up @@ -1033,6 +1037,7 @@ impl Info {
Language::Vue => include_str!("../resources/vue.ascii"),
Language::Perl => include_str!("../resources/perl.ascii"),
Language::Php => include_str!("../resources/php.ascii"),
Language::XML => include_str!("../resources/xml.ascii"),
Language::Zig => include_str!("../resources/zig.ascii"),
Language::Unknown => include_str!("../resources/unknown.ascii"),
// _ => include_str!("../resources/unknown.ascii"),
Expand Down Expand Up @@ -1083,6 +1088,7 @@ impl Info {
Language::Vue => vec![Color::BrightGreen, Color::Blue],
Language::Perl => vec![Color::BrightBlue],
Language::Php => vec![Color::BrightWhite],
Language::XML => vec![Color::Yellow],
Language::Zig => vec![Color::Yellow],
Language::Unknown => vec![Color::White],
};
Expand Down

0 comments on commit e7e25ee

Please sign in to comment.