-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix line comments that end in non-ascii character
The lexer assumed the last character was 1 byte. Signed-off-by: Sean Young <sean@mess.org>
- Loading branch information
Showing
3 changed files
with
18 additions
and
5 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,8 @@ | ||
strict digraph "tests/contract_testcases/solana/comment.sol" { | ||
contract [label="contract Hello\ntests/contract_testcases/solana/comment.sol:1:24-2:16"] | ||
diagnostic [label="pragma ‘solidity’ is ignored\nlevel Debug\ntests/contract_testcases/solana/comment.sol:1:8-23"] | ||
diagnostic_6 [label="found contract ‘Hello’\nlevel Debug\ntests/contract_testcases/solana/comment.sol:1:24-2:16"] | ||
contracts -> contract | ||
diagnostics -> diagnostic [label="Debug"] | ||
diagnostics -> diagnostic_6 [label="Debug"] | ||
} |
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 @@ | ||
pragma solidity ^0.8.0; | ||
contract Hello { | ||
// xxx 。 | ||
} | ||
|