ruff/crates/ruff_annotate_snippets/tests
Andrew Gallant 84ba4ecaf5 ruff_annotate_snippets: support overriding the "cut indicator"
We do this because `...` is valid Python, which makes it pretty likely
that some line trimming will lead to ambiguous output. So we add support
for overriding the cut indicator. This also requires changing some of
the alignment math, which was previously tightly coupled to `...`.

For Ruff, we go with `…` (`U+2026 HORIZONTAL ELLIPSIS`) for our cut
indicator.

For more details, see the patch sent to upstream:
https://github.com/rust-lang/annotate-snippets-rs/pull/172
2025-01-15 13:37:52 -05:00
..
fixtures crates: vendor annotate-snippets crate 2025-01-15 13:37:52 -05:00
examples.rs crates: vendor annotate-snippets crate 2025-01-15 13:37:52 -05:00
formatter.rs ruff_annotate_snippets: support overriding the "cut indicator" 2025-01-15 13:37:52 -05:00
rustc_tests.rs crates: vendor annotate-snippets crate 2025-01-15 13:37:52 -05:00