Skip to content

Commit

Permalink
Merge pull request #124 from astynax/master
Browse files Browse the repository at this point in the history
Add Racket language logo
  • Loading branch information
o2sh authored Oct 28, 2019
2 parents 37fddaa + b2d528c commit 99ff814
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
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

0 comments on commit 99ff814

Please sign in to comment.