diff --git a/ci/sembr/src/main.rs b/ci/sembr/src/main.rs index d8f20327b..7590fbc41 100644 --- a/ci/sembr/src/main.rs +++ b/ci/sembr/src/main.rs @@ -22,7 +22,8 @@ struct Cli { show_diff: bool, } -static REGEX_IGNORE_END: LazyLock = LazyLock::new(|| Regex::new(r"(\.|\?|;|!)$").unwrap()); +static REGEX_IGNORE_END: LazyLock = + LazyLock::new(|| Regex::new(r"(\.|\?|;|!|,|\-)$").unwrap()); static REGEX_IGNORE_LINK_TARGETS: LazyLock = LazyLock::new(|| Regex::new(r"^\[.+\]: ").unwrap()); static REGEX_SPLIT: LazyLock = diff --git a/src/implementing_new_features.md b/src/implementing_new_features.md index c3e8c0c06..4526a7af0 100644 --- a/src/implementing_new_features.md +++ b/src/implementing_new_features.md @@ -216,7 +216,8 @@ The below steps needs to be followed in order to implement a new unstable featur 1. Write a lot of tests for the new feature, preferably in `tests/ui/$feature_name/`. PRs without tests will not be accepted! -1. Get your PR reviewed and land it. You have now successfully implemented a feature in Rust! +1. Get your PR reviewed and land it. + You have now successfully implemented a feature in Rust! [`GatedSpans`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_session/parse/struct.GatedSpans.html [#81015]: https://github.com/rust-lang/rust/pull/81015