-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix unicode characters error locations (#797)
Closes #742
- Loading branch information
1 parent
3b1624b
commit 86f36d7
Showing
12 changed files
with
75 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@nomicfoundation/slang": patch | ||
--- | ||
|
||
fix source locations for unicode characters in error reports |
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
10 changes: 5 additions & 5 deletions
10
crates/solidity/outputs/cargo/slang_solidity/src/generated/parse_error.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
crates/solidity/outputs/cargo/tests/src/cst_output/generated/ContractDefinition.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...pshots/cst_output/ContractDefinition/unicode_in_doc_comments/generated/0.4.11-failure.yml
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,22 @@ | ||
# This file is generated automatically by infrastructure scripts. Please don't edit by hand. | ||
|
||
Source: > | ||
1 │ // ╒════════════════════════════════════════════════════════════════╕ │ 0..201 | ||
2 │ // │ More Info: https://github.com/NomicFoundation/slang/issues/742 │ │ 202..275 | ||
3 │ // ╘════════════════════════════════════════════════════════════════╛ │ 276..477 | ||
4 │ unexpected │ 478..488 | ||
Errors: # 1 total | ||
- > | ||
Error: Expected ContractKeyword. | ||
╭─[crates/solidity/testing/snapshots/cst_output/ContractDefinition/unicode_in_doc_comments/input.sol:1:1] | ||
│ | ||
1 │ ╭─▶ // ╒════════════════════════════════════════════════════════════════╕ | ||
┆ ┆ | ||
4 │ ├─▶ unexpected | ||
│ │ | ||
│ ╰──────────────── Error occurred here. | ||
───╯ | ||
Tree: | ||
- (SKIPPED): "// ╒══════════════════════════════════════════════..." # (0..489) |
4 changes: 4 additions & 0 deletions
4
...olidity/testing/snapshots/cst_output/ContractDefinition/unicode_in_doc_comments/input.sol
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,4 @@ | ||
// ╒════════════════════════════════════════════════════════════════╕ | ||
// │ More Info: https://github.com/NomicFoundation/slang/issues/742 │ | ||
// ╘════════════════════════════════════════════════════════════════╛ | ||
unexpected |
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
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