Skip to content

Commit

Permalink
WIP: languages.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoire-mullvad committed Sep 27, 2024
1 parent cc221d4 commit 5de2b7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/languages.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
macro_rules! languages {
( $($lang:ident { } ),+, ) => {};
}

languages! {
Go {},
}
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use rules::RuleSet;
use unic_ucd_name::Name;

mod config;
mod languages;
mod rules;
mod unicode_blocks;

Expand Down Expand Up @@ -266,6 +267,13 @@ fn get_default_config() -> Config {
.collect(),
},
language: HashMap::from([
(
Language::Swift,
config::LanguageRules {
paths: Some(vec![glob::Pattern::new("**/*.swift").unwrap()]),
rules: Default::default(),
},
),
(
Language::Rust,
config::LanguageRules {
Expand Down

0 comments on commit 5de2b7d

Please sign in to comment.