Skip to content

Commit 197c56d

Browse files
authored
Merge pull request #54 from Emanon42/master
Add Idris support
2 parents 71f245a + 032d015 commit 197c56d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Diff for: resources/idris.ascii

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
{0} %
3+
{0} %
4+
{0} %&&& %%
5+
{0} %% %&
6+
{0} &%%%& % %%
7+
{0} %% %%
8+
{0} % %%
9+
{0} %%% %%&
10+
{0} %% %%%
11+
{0} % &%%%
12+
{0} %%%&
13+
{0} &%%%
14+
{0} %%%%
15+
{0} %%%
16+
{0} %%%
17+
{0} %%%
18+
{0} &%%
19+
{0} %%%

Diff for: src/main.rs

+6
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ enum Language {
275275
Kotlin,
276276
Lisp,
277277
Lua,
278+
Idris,
278279
Nim,
279280
ObjectiveC,
280281
Python,
@@ -306,6 +307,7 @@ impl fmt::Display for Language {
306307
Language::Kotlin => write!(f, "Kotlin"),
307308
Language::Lisp => write!(f, "Lisp"),
308309
Language::Lua => write!(f, "Lua"),
310+
Language::Idris => write!(f, "Idris"),
309311
Language::Nim => write!(f, "Nim"),
310312
Language::ObjectiveC => write!(f, "Objective-C"),
311313
Language::Python => write!(f, "Python"),
@@ -651,6 +653,7 @@ impl From<tokei::LanguageType> for Language {
651653
tokei::LanguageType::Kotlin => Language::Kotlin,
652654
tokei::LanguageType::Lisp => Language::Lisp,
653655
tokei::LanguageType::Lua => Language::Lua,
656+
tokei::LanguageType::Idris => Language::Idris,
654657
tokei::LanguageType::Nim => Language::Nim,
655658
tokei::LanguageType::ObjectiveC => Language::ObjectiveC,
656659
tokei::LanguageType::Python => Language::Python,
@@ -684,6 +687,7 @@ fn get_all_language_types() -> Vec<tokei::LanguageType> {
684687
tokei::LanguageType::Kotlin,
685688
tokei::LanguageType::Lisp,
686689
tokei::LanguageType::Lua,
690+
tokei::LanguageType::Idris,
687691
tokei::LanguageType::Nim,
688692
tokei::LanguageType::ObjectiveC,
689693
tokei::LanguageType::Python,
@@ -716,6 +720,7 @@ impl Info {
716720
Language::Kotlin => include_str!("../resources/kotlin.ascii"),
717721
Language::Lisp => include_str!("../resources/lisp.ascii"),
718722
Language::Lua => include_str!("../resources/lua.ascii"),
723+
Language::Lua => include_str!("../resources/idris.ascii"),
719724
Language::Nim => include_str!("../resources/nim.ascii"),
720725
Language::ObjectiveC => include_str!("../resources/objectivec.ascii"),
721726
Language::Python => include_str!("../resources/python.ascii"),
@@ -748,6 +753,7 @@ impl Info {
748753
Language::Kotlin => vec![Color::Blue, Color::Yellow, Color::Magenta],
749754
Language::Lisp => vec![Color::Yellow],
750755
Language::Lua => vec![Color::Blue],
756+
Language::Lua => vec![Color::Red],
751757
Language::Nim => vec![Color::Yellow, Color::BrightWhite],
752758
Language::ObjectiveC => vec![Color::BrightBlue, Color::Blue],
753759
Language::Python => vec![Color::Blue, Color::Yellow],

0 commit comments

Comments
 (0)