Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes wrong line numbers shown when the `fold` is set to `true`
- Loading branch information
1 parent
448b804
commit 0814113
Showing
3 changed files
with
29 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[title] | ||
annotation_type = "Error" | ||
|
||
[[slices]] | ||
source = """ | ||
invalid syntax | ||
""" | ||
line_start = 1 | ||
origin = "path/to/error.rs" | ||
fold = true | ||
[[slices.annotations]] | ||
label = "error here" | ||
annotation_type = "Warning" | ||
range = [2,16] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
error | ||
--> path/to/error.rs:3:1 | ||
| | ||
... | ||
3 | invalid syntax | ||
| -------------- error here | ||
| |