Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Racket language logo #124

Merged
merged 1 commit into from
Oct 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions resources/racket.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

{0} {2}.:--::////::--.`
{0} {1}`/yNMMNho{2}////////////:.
{0} {1}`+NMMMMMMMMmy{2}/////////////:`
{0} `-:::{1}ohNMMMMMMMNy{2}/////////////:`
{0} .::::::::{1}odMMMMMMMNy{2}/////////////-
{0} -:::::::::::{1}/hMMMMMMMmo{2}////////////-
{0} .::::::::::::::{1}oMMMMMMMMh{2}////////////-
{0}`:::::::::::::{1}/dMMMMMMMMMMNo{2}///////////`
{0}-::::::::::::{1}sMMMMMMmMMMMMMMy{2}//////////-
{0}-::::::::::{1}/dMMMMMMs{0}:{1}+NMMMMMMd{2}/////////:
{0}-:::::::::{1}+NMMMMMm/{0}:::{1}/dMMMMMMm+{2}///////:
{0}-::::::::{1}sMMMMMMh{0}:::::::{1}dMMMMMMm+{2}//////-
{0}`:::::::{1}sMMMMMMy{0}:::::::::{1}dMMMMMMm+{2}/////`
{0} .:::::{1}sMMMMMMs{0}:::::::::::{1}mMMMMMMd{2}////-
{0} -:::{1}sMMMMMMy{0}::::::::::::{1}/NMMMMMMh{2}//-
{0} .:{1}+MMMMMMd{0}::::::::::::::{1}oMMMMMMMo{2}-
{0} {1}`yMMMMMN/{0}:::::::::::::::{1}hMMMMMh.
{0} {1}-yMMMo{0}::::::::::::::::{1}/MMMy-
{0} {1}`/s{0}::::::::::::::::::{1}o/`
{0} ``.---::::---..`
5 changes: 5 additions & 0 deletions src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub enum Language {
PureScript,
Python,
R,
Racket,
Ruby,
Rust,
Scala,
Expand Down Expand Up @@ -81,6 +82,7 @@ impl std::fmt::Display for Language {
Language::PureScript => write!(f, "PureScript"),
Language::Python => write!(f, "Python"),
Language::R => write!(f, "R"),
Language::Racket => write!(f, "Racket"),
Language::Ruby => write!(f, "Ruby"),
Language::Rust => write!(f, "Rust"),
Language::Scala => write!(f, "Scala"),
Expand Down Expand Up @@ -134,6 +136,7 @@ impl From<tokei::LanguageType> for Language {
tokei::LanguageType::PureScript => Language::PureScript,
tokei::LanguageType::Python => Language::Python,
tokei::LanguageType::R => Language::R,
tokei::LanguageType::Racket => Language::Racket,
tokei::LanguageType::Ruby => Language::Ruby,
tokei::LanguageType::Rust => Language::Rust,
tokei::LanguageType::Scala => Language::Scala,
Expand Down Expand Up @@ -183,6 +186,7 @@ impl Language {
Language::PureScript => include_str!("../resources/purescript.ascii"),
Language::Python => include_str!("../resources/python.ascii"),
Language::R => include_str!("../resources/r.ascii"),
Language::Racket => include_str!("../resources/racket.ascii"),
Language::Ruby => include_str!("../resources/ruby.ascii"),
Language::Rust => include_str!("../resources/rust.ascii"),
Language::Scala => include_str!("../resources/scala.ascii"),
Expand Down Expand Up @@ -231,6 +235,7 @@ impl Language {
Language::PureScript => vec![Color::White],
Language::Python => vec![Color::Blue, Color::Yellow],
Language::R => vec![Color::White, Color::Blue],
Language::Racket => vec![Color::Red, Color::White, Color::Blue],
Language::Ruby => vec![Color::Magenta],
Language::Rust => vec![Color::White, Color::BrightRed],
Language::Scala => vec![Color::Blue],
Expand Down