From 4fabcbef4296cb9913238efd0ad4af53bbcbf523 Mon Sep 17 00:00:00 2001 From: Alessandro Menezes Date: Fri, 15 Oct 2021 08:00:15 -0400 Subject: [PATCH 1/3] Add LLVM language support Adds support to LLVM as it's listed as missing on #490. --- resources/llvm.ascii | 20 ++++++++++++++++++++ src/info/language.rs | 1 + 2 files changed, 21 insertions(+) create mode 100644 resources/llvm.ascii diff --git a/resources/llvm.ascii b/resources/llvm.ascii new file mode 100644 index 000000000..a4582f533 --- /dev/null +++ b/resources/llvm.ascii @@ -0,0 +1,20 @@ +{0} jKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKL +{0} ]KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKL +{0} ]KKKKKKKK9M"M " '`"**MKKKKKKKKKKL +{0} ]KKKKKKH* *KKKKKKL +{0} ]KKKKK^ ,wm###mww "KKKL +{0} ]KKKM #KKKKKKKKKKKKW "KL +{0} ]KKK ]KKKKKKKKKKKKKKKN +{0} ]KKK "RKKKKKKKKKKKKKKKK +{0} ]KKN `9KKKKKKKKKKKKKK +{0} ]KKK 9KKKKKKKKKKKKN +{0} ]KKK 1KKKKKKKKKKKK +{0} ]KKK .KKKKKKKKKKKK +{0} ]KKKKw, , 9KKKKKKKKKKK +{0} ]KKKKKKK KK, `#KKKKKKKKM +{0} ]KKKKKKKL 1KDwww#KKKKKKKKKK +{0} ]KKKKKKK, ,KKKKKKKKKKKKKKR +{0} `KKKKKKKKKKKKKKKKKKKKKKKM` +{0} "KKKKKKKKKKKKKKKKKKB" +{0} `l"lllllllll`"l'` +{0} diff --git a/src/info/language.rs b/src/info/language.rs index 4b2c7a92c..5c9f23808 100644 --- a/src/info/language.rs +++ b/src/info/language.rs @@ -199,6 +199,7 @@ define_languages! { { Kotlin, "kotlin.ascii", define_colors!( [Color::Blue, Color::Yellow, Color::Magenta] ) }, { Lisp, "lisp.ascii", define_colors!( [Color::White] ) }, { Lua, "lua.ascii", define_colors!( [Color::Blue, Color::White, Color::White] : [Color::TrueColor{ r:46, g:0 ,b:127}, Color::TrueColor{ r:128, g:128 ,b:128}, Color::TrueColor{ r:255, g:255 ,b:255} ] ) }, + { LLVM, "llvm.ascii", define_colors!( [Color::Red, Color::White] : [Color::TrueColor{ r:152, g:1 ,b:46}, Color::TrueColor{ r:255, g:255 ,b:255} ] ) }, { Markdown, "markdown.ascii", define_colors!( [Color::White, Color::Red] ) }, { Nim, "nim.ascii", define_colors!( [Color::Yellow, Color::White] ) }, { Nix, "nix.ascii", define_colors!( [Color::Cyan, Color::Blue] ) }, From 16f94ccb57d6c0d88be843fb84f5034f0cc5daee Mon Sep 17 00:00:00 2001 From: Alessandro Menezes Date: Fri, 15 Oct 2021 11:36:10 -0400 Subject: [PATCH 2/3] Removing unused color in LLVM picture --- src/info/language.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/info/language.rs b/src/info/language.rs index 5c9f23808..e5e669878 100644 --- a/src/info/language.rs +++ b/src/info/language.rs @@ -199,7 +199,7 @@ define_languages! { { Kotlin, "kotlin.ascii", define_colors!( [Color::Blue, Color::Yellow, Color::Magenta] ) }, { Lisp, "lisp.ascii", define_colors!( [Color::White] ) }, { Lua, "lua.ascii", define_colors!( [Color::Blue, Color::White, Color::White] : [Color::TrueColor{ r:46, g:0 ,b:127}, Color::TrueColor{ r:128, g:128 ,b:128}, Color::TrueColor{ r:255, g:255 ,b:255} ] ) }, - { LLVM, "llvm.ascii", define_colors!( [Color::Red, Color::White] : [Color::TrueColor{ r:152, g:1 ,b:46}, Color::TrueColor{ r:255, g:255 ,b:255} ] ) }, + { LLVM, "llvm.ascii", define_colors!( [Color::Red] : [Color::TrueColor{ r:152, g:1 ,b:46}] ) }, { Markdown, "markdown.ascii", define_colors!( [Color::White, Color::Red] ) }, { Nim, "nim.ascii", define_colors!( [Color::Yellow, Color::White] ) }, { Nix, "nix.ascii", define_colors!( [Color::Cyan, Color::Blue] ) }, From dc7d7fbe5c696e33e247ca203a29efa88502fb21 Mon Sep 17 00:00:00 2001 From: o2sh Date: Fri, 15 Oct 2021 19:06:31 +0200 Subject: [PATCH 3/3] clean llvm logo --- resources/llvm.ascii | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/resources/llvm.ascii b/resources/llvm.ascii index a4582f533..2653fcc5f 100644 --- a/resources/llvm.ascii +++ b/resources/llvm.ascii @@ -1,20 +1,19 @@ -{0} jKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKL -{0} ]KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKL -{0} ]KKKKKKKK9M"M " '`"**MKKKKKKKKKKL -{0} ]KKKKKKH* *KKKKKKL -{0} ]KKKKK^ ,wm###mww "KKKL -{0} ]KKKM #KKKKKKKKKKKKW "KL -{0} ]KKK ]KKKKKKKKKKKKKKKN -{0} ]KKK "RKKKKKKKKKKKKKKKK -{0} ]KKN `9KKKKKKKKKKKKKK -{0} ]KKK 9KKKKKKKKKKKKN -{0} ]KKK 1KKKKKKKKKKKK -{0} ]KKK .KKKKKKKKKKKK -{0} ]KKKKw, , 9KKKKKKKKKKK -{0} ]KKKKKKK KK, `#KKKKKKKKM -{0} ]KKKKKKKL 1KDwww#KKKKKKKKKK -{0} ]KKKKKKK, ,KKKKKKKKKKKKKKR -{0} `KKKKKKKKKKKKKKKKKKKKKKKM` -{0} "KKKKKKKKKKKKKKKKKKB" -{0} `l"lllllllll`"l'` -{0} +{0}KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK +{0}KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK +{0}KKKKKKKKKKM"M " '`"**MKKKKKKKKKKK +{0}KKKKKKKH* *KKKKKKK +{0}KKKKKK^ ,wm###mww "KKKK +{0}KKKKM #KKKKKKKKKKKKW "KK +{0}KKKK KKKKKKKKKKKKKKKKN +{0}KKKK "RKKKKKKKKKKKKKKKK +{0}KKKN `9KKKKKKKKKKKKKK +{0}KKKK 9KKKKKKKKKKKKN +{0}KKKK 1KKKKKKKKKKKK +{0}KKKK .KKKKKKKKKKKK +{0}KKKKKw, , 9KKKKKKKKKKK +{0}KKKKKKKK KK, `#KKKKKKKKM +{0}KKKKKKKKL 1KDwww#KKKKKKKKKK +{0}KKKKKKKK, ,KKKKKKKKKKKKKKR +{0} `KKKKKKKKKKKKKKKKKKKKKKKM` +{0} "KKKKKKKKKKKKKKKKKKB" +{0} `KKKKKKKKKKKKKK'`