typos/crates/typos-cli/tests/cmd/ignore-block.toml
Noah Pendleton c7a34fcbe2 docs(ref): Add dotall specifier to block ignore
Needed a `(?s)` to match multiple enclosed newlines. And added a
non-greedy modifier and matching test to prevent double blocks from
causing intermediate lines to be ignored:

```shell
# spellchecker:off
should be ignored
# spellchecker:on
should not be ignored  # without non-greedy, this is also ignored
# spellchecker:off
should be ignored
# spellchecker:on
```
2024-06-04 15:56:21 -04:00

18 lines
255 B
TOML

bin.name = "typos"
stdin = "--sort"
stdout = """
error: `hello` should be `goodbye`
--> ./file.ignore:1:1
|
1 | hello
| ^^^^^
|
error: `hello` should be `goodbye`
--> ./file.ignore:6:1
|
6 | hello
| ^^^^^
|
"""
stderr = ""
status.code = 2