Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(core): allow trailing commas in the `lint_group` macro
Elijah Potter3ab995080309
diff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rsindex be7ef925a..280ef4b4a 100644--- a/harper-core/src/linting/lint_group.rs+++ b/harper-core/src/linting/lint_group.rs@@ -35,7 +35,7 @@ use super::{CurrencyPlacement, Lint, Linter, OxfordComma};use crate::{Dictionary, Document};macro_rules! create_lint_group_config {- ($($linter:ident => $default:expr),*) => {+ ($($linter:ident => $default:expr),* $(,)?) => {paste! {/// A collection of all the descriptions from the composing linters.#[derive(Debug, Clone, Copy, Serialize, Deserialize, Default)]@@ -189,7 +189,7 @@ create_lint_group_config!(OxfordComma => true,PronounContraction => true,CurrencyPlacement => true,- SomewhatSomething => true+ SomewhatSomething => true,);impl<T: Dictionary + Default> Default for LintGroup<T> {