annotate-snippets-rs icon indicating copy to clipboard operation
annotate-snippets-rs copied to clipboard

Library for snippet annotations

Results 58 annotate-snippets-rs issues
Sort by recently updated
recently updated
newest added

Hello, thanks for your amazing work on this crate! I recently encountered a problem while trying to annotate Unix line feeds (`\n`). When annotating line feeds with an empty `Range`,...

This PR fixes an issue in the computation of the position in the origin file. When a highlighted section starts at the beginning of the line, the origin position used...

As part of this, we should keep in mind #118

M-breaking-change

```rust .element( Origin::new("$SRC_DIR/core/src/cmp.rs") .line(334) .char_column(14) .primary(true) .label("...because it uses `Self` as a type parameter") ) ``` seems to create ``` --> $SRC_DIR/core/src/cmp.rs:334:14 | = note: ...because it uses `Self` as...

M-breaking-change

I've been using this crate for personal project of mine, and I've sometimes found myself wanting to do something like this this: ```rust fn make_message(token: &Token) -> Message

M-breaking-change

C-enhancement
M-breaking-change

Currently, display_list.rs file is of 1700+ lines, which might be hard to read. So I guess it would be a good idea to divide file into folder as it can...

A well documented readme.

This PR refactors the display_list.rs file, which was over 1700 lines, into a more manageable structure by splitting it into separate modules. (https://github.com/rust-lang/annotate-snippets-rs/issues/184) Folder structure: src/renderer/display ├── constants.rs ├── cursor_line.rs...