Skip to content

Commit

Permalink
add ada
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed May 24, 2024
1 parent c755566 commit f3cce9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/langs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use crate::reporters::terminal::TerminalLanguageSummary;

#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum Language {
Ada,
Assembly,
Astro,
Bash,
Expand Down Expand Up @@ -139,6 +140,7 @@ impl Language {
use Language::*;

match name.as_ref().to_ascii_lowercase().as_ref() {
"ada" => Some(Ada),
"assembly" => Some(Assembly),
"astro" => Some(Astro),
"bash" => Some(Bash),
Expand Down Expand Up @@ -279,6 +281,8 @@ impl Language {
use Language::*;

match ext.as_ref().to_str()?.to_ascii_lowercase().as_ref() {
"adb" => Some(Ada),
"ads" => Some(Ada),
"asm" => Some(Assembly),
"astro" => Some(Astro),
"b" => Some(Brainfuck),
Expand Down Expand Up @@ -455,6 +459,7 @@ impl LanguageInfo {
use Language::*;

match lang {
Ada => info!("Ada", color: 0x02f88c),
Assembly => info!("Assembly"),
Astro => info!("Astro", color: 0xa78bfa),
Bash => info!("Bash", color: [50, 50, 50]),
Expand Down

0 comments on commit f3cce9f

Please sign in to comment.