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 7ce22b2 commit 6ae2453
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 @@ -288,6 +289,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 6ae2453

Please sign in to comment.