Skip to content

fix off by one error in multiline highlighting #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix tests
  • Loading branch information
digama0 committed Mar 2, 2021
commit 34df93e4a8ab568625d177a7ccecf1e69f3209df
2 changes: 1 addition & 1 deletion tests/fixtures/no-color/multiline_annotation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ range = [5, 19]
[[slices.annotations]]
label = "expected enum `std::option::Option`, found ()"
annotation_type = "Error"
range = [22, 765]
range = [22, 766]
[title]
label = "mismatched types"
id = "E0308"
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/no-color/multiline_annotation2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fold = false
[[slices.annotations]]
label = "missing fields `lineno`, `content`"
annotation_type = "Error"
range = [31, 127]
range = [31, 128]

[title]
label = "pattern does not mention fields `lineno`, `content`"
Expand Down