-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a new API for overriding the use of `...` to indicate a cut or trimmed line. In the case of Ruff, we didn't want to use `...` since `...` is valid Python code. It could be rather confusing in some cases where `...` would be ambiguous between "line was cut here" and "this is what the actual line read as." I think this can happen with _any_ indicator of course, but for Python specifically, it's pretty likely to happen with `...`. The new API here is somewhat sub-optimal in that it requires a `&'static str`. I did this because of the constraints imposed by a `Renderer`'s `const` constructor.
- Loading branch information
1 parent
7132bf3
commit 179098f
Showing
3 changed files
with
91 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters