Skip to content

Commit

Permalink
tcl && purescript
Browse files Browse the repository at this point in the history
  • Loading branch information
goosedb committed Oct 9, 2019
1 parent c36d5bf commit 379d0c0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/purescript.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@



\\\\\\\\\\\\\\ \\\\\
\\\\\\\\\\\\\\ \\\\\
///// \\\\\
///// ////////////// /////
///// ////////////// /////
\\\\\ /////
\\\\\ \\\\\\\\\\\\\\
\\\\\ \\\\\\\\\\\\\\
19 changes: 19 additions & 0 deletions resources/tcl.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

{0} //
{2} . /{0}////
{2} /{0}/////// .
{2} //{0}//{1}/{0}/////
{2} //{0}//{1}/{0}/////
{2} . //{0}/{1}//{0}////
{2} //{0}//{1}//{0}////
{2} //{0}/{1}//{0}/////
{2} /{0}//{1}//{0}////
{2} /{0}/{1}//{0}//// .
{2} . /{0}/{1}//{0}/////
{2} /{0}/{1}//{0}////
{2} /{1}//{0}//
{0} {1}//
{0} {1}//
{0} {1}/
{0} {1}/

12 changes: 12 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,15 @@ enum Language {
Lua,
Nim,
ObjectiveC,
PureScript,
Python,
R,
Ruby,
Rust,
Scala,
Shell,
Swift,
Tcl,
TypeScript,
JavaScript,
Perl,
Expand Down Expand Up @@ -313,13 +315,15 @@ impl fmt::Display for Language {
Language::Lua => write!(f, "Lua"),
Language::Nim => write!(f, "Nim"),
Language::ObjectiveC => write!(f, "Objective-C"),
Language::PureScript => write!(f, "PureScript"),
Language::Python => write!(f, "Python"),
Language::R => write!(f, "R"),
Language::Ruby => write!(f, "Ruby"),
Language::Rust => write!(f, "Rust"),
Language::Scala => write!(f, "Scala"),
Language::Shell => write!(f, "Shell"),
Language::Swift => write!(f, "Swift"),
Language::Tcl => write!(f, "Tcl"),
Language::TypeScript => write!(f, "TypeScript"),
Language::JavaScript => write!(f, "JavaScript"),
Language::Perl => write!(f, "Perl"),
Expand Down Expand Up @@ -691,13 +695,15 @@ impl From<tokei::LanguageType> for Language {
tokei::LanguageType::Lua => Language::Lua,
tokei::LanguageType::Nim => Language::Nim,
tokei::LanguageType::ObjectiveC => Language::ObjectiveC,
tokei::LanguageType::PureScript => Language::PureScript,
tokei::LanguageType::Python => Language::Python,
tokei::LanguageType::R => Language::R,
tokei::LanguageType::Ruby => Language::Ruby,
tokei::LanguageType::Rust => Language::Rust,
tokei::LanguageType::Scala => Language::Scala,
tokei::LanguageType::Sh => Language::Shell,
tokei::LanguageType::Swift => Language::Swift,
tokei::LanguageType::Tcl => Language::Tcl,
tokei::LanguageType::TypeScript => Language::TypeScript,
tokei::LanguageType::JavaScript => Language::JavaScript,
tokei::LanguageType::Perl => Language::Perl,
Expand Down Expand Up @@ -727,13 +733,15 @@ fn get_all_language_types() -> Vec<tokei::LanguageType> {
tokei::LanguageType::Lua,
tokei::LanguageType::Nim,
tokei::LanguageType::ObjectiveC,
tokei::LanguageType::PureScript,
tokei::LanguageType::Python,
tokei::LanguageType::R,
tokei::LanguageType::Ruby,
tokei::LanguageType::Rust,
tokei::LanguageType::Scala,
tokei::LanguageType::Sh,
tokei::LanguageType::Swift,
tokei::LanguageType::Tcl,
tokei::LanguageType::TypeScript,
tokei::LanguageType::JavaScript,
tokei::LanguageType::Perl,
Expand Down Expand Up @@ -762,13 +770,15 @@ impl Info {
Language::Lua => include_str!("../resources/lua.ascii"),
Language::Nim => include_str!("../resources/nim.ascii"),
Language::ObjectiveC => include_str!("../resources/objectivec.ascii"),
Language::PureScript => include_str!("../resources/purescript.ascii"),
Language::Python => include_str!("../resources/python.ascii"),
Language::R => include_str!("../resources/r.ascii"),
Language::Ruby => include_str!("../resources/ruby.ascii"),
Language::Rust => include_str!("../resources/rust.ascii"),
Language::Scala => include_str!("../resources/scala.ascii"),
Language::Shell => include_str!("../resources/shell.ascii"),
Language::Swift => include_str!("../resources/swift.ascii"),
Language::Tcl => include_str!("../resources/tcl.ascii"),
Language::TypeScript => include_str!("../resources/typescript.ascii"),
Language::JavaScript => include_str!("../resources/javascript.ascii"),
Language::Perl => include_str!("../resources/perl.ascii"),
Expand Down Expand Up @@ -797,13 +807,15 @@ impl Info {
Language::Lua => vec![Color::Blue],
Language::Nim => vec![Color::Yellow, Color::BrightWhite],
Language::ObjectiveC => vec![Color::BrightBlue, Color::Blue],
Language::PureScript => vec![Color::White],
Language::Python => vec![Color::Blue, Color::Yellow],
Language::R => vec![Color::White, Color::Blue],
Language::Ruby => vec![Color::Magenta],
Language::Rust => vec![Color::White, Color::BrightRed],
Language::Scala => vec![Color::Blue],
Language::Shell => vec![Color::Green],
Language::Swift => vec![Color::BrightRed],
Language::Tcl => vec![Color::Blue, Color::White, Color::BrightBlue],
Language::TypeScript => vec![Color::Cyan],
Language::JavaScript => vec![Color::BrightYellow],
Language::Perl => vec![Color::BrightBlue],
Expand Down

0 comments on commit 379d0c0

Please sign in to comment.