From 7f1ae192806b43a6e478a927e59bc0c999056b23 Mon Sep 17 00:00:00 2001 From: geeseven <2334728+geeseven@users.noreply.github.com> Date: Sun, 20 Dec 2020 14:43:16 -0600 Subject: [PATCH 1/2] add support for Emojicode --- resources/emojicode.ascii | 23 +++++++++++++++++++++++ src/onefetch/language.rs | 1 + 2 files changed, 24 insertions(+) create mode 100644 resources/emojicode.ascii diff --git a/resources/emojicode.ascii b/resources/emojicode.ascii new file mode 100644 index 000000000..74ed3f1a1 --- /dev/null +++ b/resources/emojicode.ascii @@ -0,0 +1,23 @@ +{0} ~~ +{0} ~~ +{0} ~~ +{0} ~~{2} '''''''' +{0} ~~~{2} '''''''''''' +{0} {1}````````{2}'''''''''''''' +{1} `````````{2}'''''''''''''' +{1} `````````{2}'''''''''''''{3}~~~~~~~- +{1} `````````{2}'''''''''''{3}~~~~~~~~~~~ +{1} ``````````{2}''{1}````````{3}~~~~~~~~~~~~ +{1} ``````````````````````{3}~~~~~~~~~~~ +{1} ```````````````````````{3}~~~~~~~~~~ +{1} ``{3}~~~~~{1}```````````````{3}~~~~~~~~~~ +{3} -~~~~~~~{1}```````````````{3}~~~~~~~~~ +{3} ~~~~~~~~~{1}``````````````````````` +{3} ~~~~~~~~~~{1}```````````````````````` +{3} ~~~~~~~~~~~~{1}````````````````````````` +{3} ~~~~~~~~~~~~~~{1}``````{2}```````````````` +{3} ~~~~~~~~~~~~~~{2}'''''''{1}``````````````` +{3} ~~~~~~~~~~~~{2}''''''''{1}``````````````` +{3} ~~~~~~~~{2}'''''''''''{1}`````````````` +{2} {2}'''''''''''{1}```````````` +{2} {2}'''''''' {1}```````` diff --git a/src/onefetch/language.rs b/src/onefetch/language.rs index 0014a6402..9fba0365e 100644 --- a/src/onefetch/language.rs +++ b/src/onefetch/language.rs @@ -173,6 +173,7 @@ define_languages! { { Elisp, "emacslisp.ascii", "EmacsLisp", define_colors!( [Color::Magenta, Color::White] ), "emacslisp" }, { Elixir, "elixir.ascii", "Elixir", define_colors!( [Color::Magenta] ) }, { Elm, "elm.ascii", "Elm", define_colors!( [Color::Blue, Color::Green, Color::Yellow, Color::Cyan] ) }, + { Emojicode, "emojicode.ascii", "Emojicode", define_colors!( [Color::Green, Color::Magenta, Color::Magenta, Color::Magenta] : [Color::TrueColor{r:51, g:72, b:39}, Color::TrueColor{r:59, g:43, b:81}, Color::TrueColor{r:65, g:53, b:84}, Color::TrueColor{r:52, g:39, b:72}] ) }, { Erlang, "erlang.ascii", "Erlang", define_colors!( [Color::Red] ) }, { Fish, "fish.ascii", "Fish", define_colors!( [Color::Red, Color::Yellow] ) }, { Forth, "forth.ascii", "Forth", define_colors!( [Color::Red] ) }, From 772823722d732b52a071428f591bf205e3498759 Mon Sep 17 00:00:00 2001 From: o2sh Date: Sun, 20 Dec 2020 22:43:12 +0100 Subject: [PATCH 2/2] brighter colors for emojicode --- src/onefetch/language.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onefetch/language.rs b/src/onefetch/language.rs index 9fba0365e..7857ac8e2 100644 --- a/src/onefetch/language.rs +++ b/src/onefetch/language.rs @@ -173,7 +173,7 @@ define_languages! { { Elisp, "emacslisp.ascii", "EmacsLisp", define_colors!( [Color::Magenta, Color::White] ), "emacslisp" }, { Elixir, "elixir.ascii", "Elixir", define_colors!( [Color::Magenta] ) }, { Elm, "elm.ascii", "Elm", define_colors!( [Color::Blue, Color::Green, Color::Yellow, Color::Cyan] ) }, - { Emojicode, "emojicode.ascii", "Emojicode", define_colors!( [Color::Green, Color::Magenta, Color::Magenta, Color::Magenta] : [Color::TrueColor{r:51, g:72, b:39}, Color::TrueColor{r:59, g:43, b:81}, Color::TrueColor{r:65, g:53, b:84}, Color::TrueColor{r:52, g:39, b:72}] ) }, + { Emojicode, "emojicode.ascii", "Emojicode", define_colors!( [Color::Green, Color::Magenta, Color::Magenta, Color::Magenta] : [Color::TrueColor{r:119, g:178, b:85}, Color::TrueColor{r:146, g:102, b:204}, Color::TrueColor{r:170, g:141, b:216}, Color::TrueColor{r:116, g:78, b:170}] ) }, { Erlang, "erlang.ascii", "Erlang", define_colors!( [Color::Red] ) }, { Fish, "fish.ascii", "Fish", define_colors!( [Color::Red, Color::Yellow] ) }, { Forth, "forth.ascii", "Forth", define_colors!( [Color::Red] ) },