From bb91c576febd849e13f4c24a4d19ab5f50e57dd7 Mon Sep 17 00:00:00 2001 From: Alessandro Menezes Date: Fri, 15 Oct 2021 07:23:06 -0400 Subject: [PATCH 1/3] Add SASS language support Adds support to SASS as it's listed as missing on #490. --- resources/sass.ascii | 20 ++++++++++++++++++++ src/info/language.rs | 1 + 2 files changed, 21 insertions(+) create mode 100644 resources/sass.ascii diff --git a/resources/sass.ascii b/resources/sass.ascii new file mode 100644 index 000000000..d03ac8b9b --- /dev/null +++ b/resources/sass.ascii @@ -0,0 +1,20 @@ +{0} +{0} +{0} +{0} ,wppbbbbbp, +{0} ,wpb@KP"``` ``"T@b +{0} ,pb@P"` @@ +{0} ,b@P` /@P +{0} p@b` ,bK` +{0} {@@ 'w, ,,wpbP*` +{0} 0@b ```` ,pp ;@@ +{0} "0bw ,bPK ,K@L /PT@ +{0} "0b, ,,pbP @b .b Tb{" $bP"""*Tb, +{0} ,/b@P &@ 0@M.b ,@K ,P @L `b +{0} ,pb" Ib @@ &h@bP ,pCpP bb*` /` +{0} p@` ,@` `bb` T" ""` +{0} @@w,pbK` +{0} `***^ +{0} +{0} +{0} diff --git a/src/info/language.rs b/src/info/language.rs index 4b2c7a92c..6810d8095 100644 --- a/src/info/language.rs +++ b/src/info/language.rs @@ -234,6 +234,7 @@ define_languages! { }, { Ruby, "ruby.ascii", define_colors!( [Color::Magenta] ) }, { Rust, "rust.ascii", define_colors!( [Color::Red, Color::White] : [Color::TrueColor{ r:228, g:55 ,b:23}, Color::TrueColor{ r:255, g:255 ,b:255} ] ) }, + { Sass, "sass.ascii", define_colors!( [Color::Magenta] : [Color::TrueColor{ r:205, g:103 ,b:153} ] ) }, { Scala, "scala.ascii", define_colors!( [Color::Red, Color::Red] : [Color::TrueColor{ r:223, g:63 ,b:61}, Color::TrueColor{ r:127, g:12 ,b:29} ] ) }, { Scheme, "scheme.ascii", define_colors!( [Color::White] : [Color::TrueColor{r: 85, g:85, b:85}] ) }, { Sh, "shell.ascii", define_colors!( [Color::Green] ), "shell" }, From 9c8f2966e5598ba8d95557417159c05d74d8d98e Mon Sep 17 00:00:00 2001 From: Alessandro Menezes Date: Fri, 15 Oct 2021 08:03:54 -0400 Subject: [PATCH 2/3] Adjusting SASS image dimensions Removing the padding so the image can fit within 40 characters. --- resources/sass.ascii | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/resources/sass.ascii b/resources/sass.ascii index d03ac8b9b..825f3d005 100644 --- a/resources/sass.ascii +++ b/resources/sass.ascii @@ -1,20 +1,20 @@ {0} {0} {0} -{0} ,wppbbbbbp, -{0} ,wpb@KP"``` ``"T@b -{0} ,pb@P"` @@ -{0} ,b@P` /@P -{0} p@b` ,bK` -{0} {@@ 'w, ,,wpbP*` -{0} 0@b ```` ,pp ;@@ -{0} "0bw ,bPK ,K@L /PT@ -{0} "0b, ,,pbP @b .b Tb{" $bP"""*Tb, -{0} ,/b@P &@ 0@M.b ,@K ,P @L `b -{0} ,pb" Ib @@ &h@bP ,pCpP bb*` /` -{0} p@` ,@` `bb` T" ""` -{0} @@w,pbK` -{0} `***^ +{0} ,wppbbbbbp, +{0} ,wpb@KP"``` ``"T@b +{0} ,pb@P"` @@ +{0} ,b@P` /@P +{0} p@b` ,bK` +{0}{@@ 'w, ,,wpbP*` +{0} 0@b ```` ,pp ;@@ +{0} "0bw ,bPK ,K@L /PT@ +{0} "0b, ,,pbP @b .b Tb{" $bP"""*Tb, +{0} ,/b@P &@ 0@M.b ,@K ,P @L `b +{0} ,pb" Ib @@ &h@bP ,pCpP bb*` /` +{0} p@` ,@` `bb` T" ""` +{0} @@w,pbK` +{0} `***^ {0} {0} {0} From 53cbf18099c7d028758a1e679714ec52b63c3196 Mon Sep 17 00:00:00 2001 From: o2sh Date: Fri, 15 Oct 2021 17:26:44 +0200 Subject: [PATCH 3/3] remove empty lines on sass logo --- resources/sass.ascii | 6 ------ 1 file changed, 6 deletions(-) diff --git a/resources/sass.ascii b/resources/sass.ascii index 825f3d005..710ce10a1 100644 --- a/resources/sass.ascii +++ b/resources/sass.ascii @@ -1,6 +1,3 @@ -{0} -{0} -{0} {0} ,wppbbbbbp, {0} ,wpb@KP"``` ``"T@b {0} ,pb@P"` @@ @@ -15,6 +12,3 @@ {0} p@` ,@` `bb` T" ""` {0} @@w,pbK` {0} `***^ -{0} -{0} -{0}