diff --git a/src/languages.rs b/src/languages.rs new file mode 100644 index 0000000..2c8bf09 --- /dev/null +++ b/src/languages.rs @@ -0,0 +1,7 @@ +macro_rules! languages { + ( $($lang:ident { } ),+, ) => {}; +} + +languages! { + Go {}, +} diff --git a/src/main.rs b/src/main.rs index 5d98787..410e7f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,6 +15,7 @@ use rules::RuleSet; use unic_ucd_name::Name; mod config; +mod languages; mod rules; mod unicode_blocks; @@ -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 {