Skip to content

Commit

Permalink
added in coffeescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsuench committed Oct 12, 2019
1 parent d9bfb73 commit b90f95b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions resources/coffeescript.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ccc ccccccccccc
c c cxOc kkl
cc ox d0kdc dd xKO cc
OXklc ccccccc cooolc ccoO0
kkkxc dxxxc
cc clooddddddxxxxddddddoolc 0l
dNX0k cOKNO
KMMMMMMWWNNXXXXKKKKKKKXXXNNWWMMMMMMXl
xKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx
oKOcdXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWk
XNo oXMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk
WWx c0WMMMMMMMMMMMMMMMMMMMMMMMMMXo
0WXd xNMMMMMMMMMMMMMMMMMMMMMMWOc
dKX0 lXMMMMMMMMMCMMMMMMMMMMWx
llc oNMMMMMMMMMMMMMMMMMMWO
lOXWMMMMMMMMMMMMWN0d
cdOKNWMMMMWNX0kl
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ enum Language {
Assembly,
C,
Clojure,
CoffeeScript,
Cpp,
Csharp,
Dart,
Expand Down Expand Up @@ -309,6 +310,7 @@ impl fmt::Display for Language {
Language::Assembly => write!(f, "Assembly"),
Language::C => write!(f, "C"),
Language::Clojure => write!(f, "Clojure"),
Language::CoffeeScript => write!(f, "CoffeeScript"),
Language::Cpp => write!(f, "C++"),
Language::Csharp => write!(f, "C#"),
Language::Dart => write!(f, "Dart"),
Expand Down Expand Up @@ -708,6 +710,7 @@ impl From<tokei::LanguageType> for Language {
tokei::LanguageType::Assembly => Language::Assembly,
tokei::LanguageType::C => Language::C,
tokei::LanguageType::Clojure => Language::Clojure,
tokei::LanguageType::CoffeeScript => Language::CoffeeScript,
tokei::LanguageType::Cpp => Language::Cpp,
tokei::LanguageType::CSharp => Language::Csharp,
tokei::LanguageType::Dart => Language::Dart,
Expand Down Expand Up @@ -746,6 +749,7 @@ fn get_all_language_types() -> Vec<tokei::LanguageType> {
tokei::LanguageType::Assembly,
tokei::LanguageType::C,
tokei::LanguageType::Clojure,
tokei::LanguageType::CoffeeScript,
tokei::LanguageType::Cpp,
tokei::LanguageType::CSharp,
tokei::LanguageType::Dart,
Expand Down Expand Up @@ -783,6 +787,7 @@ impl Info {
Language::Assembly => include_str!("../resources/assembly.ascii"),
Language::C => include_str!("../resources/c.ascii"),
Language::Clojure => include_str!("../resources/clojure.ascii"),
Language::CoffeeScript => include_str!("../resources/coffeescript.ascii"),
Language::Cpp => include_str!("../resources/cpp.ascii"),
Language::Csharp => include_str!("../resources/csharp.ascii"),
Language::Dart => include_str!("../resources/dart.ascii"),
Expand Down Expand Up @@ -820,6 +825,7 @@ impl Info {
Language::Assembly => vec![Color::Cyan],
Language::C => vec![Color::BrightBlue, Color::Blue],
Language::Clojure => vec![Color::BrightBlue, Color::BrightGreen],
Language::CoffeeScript => vec![Color::Red],
Language::Cpp => vec![Color::Yellow, Color::Cyan],
Language::Csharp => vec![Color::White],
Language::Dart => vec![Color::Blue, Color::Cyan],
Expand Down

0 comments on commit b90f95b

Please sign in to comment.