-
Notifications
You must be signed in to change notification settings - Fork 232
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
Files with \r\n can be incorrectly tokenized #744
Comments
This type of comment was not recognised by the lexer. Fixes hyperledger-solang#744. Signed-off-by: Sean Young <[email protected]>
This type of comment was not recognised by the lexer. Fixes hyperledger-solang#744. Signed-off-by: Sean Young <[email protected]>
Great, thank you very much! I'll go through them and make sure they parse. |
btw, I'm lexing the whole smart-contract-sanctuary repository and partially comparing the results with those of |
As promised, here are all the files from the sanctuary that caused errors: |
Thank you! |
This type of comment was not recognised by the lexer. See hyperledger-solang#744. Signed-off-by: Sean Young <[email protected]>
This type of comment was not recognised by the lexer. See hyperledger-solang#744. Signed-off-by: Sean Young <[email protected]>
This type of comment was not recognised by the lexer. See #744. Signed-off-by: Sean Young <[email protected]>
@seanyoung did #745 fix this? |
This issue is not just what's in the description, it's all the files in the zip file. They should be re-tested |
Ok, I'm not closing this then. Thanks! |
Hi,
I just noticed that this file is tokenized incorrectly, and I have a strong suspicion that it's because it has
\r\n
end lines. In particular, it has some inside comments.9d694731f6291f4553fad6b8174e7c915e6219ec_TigerBNB.sol
If you compile it with
solc
thepragma solidity ^0.6.12;
statement is correctly parsed. Insolang
it's part of a comment.The text was updated successfully, but these errors were encountered: