-
Notifications
You must be signed in to change notification settings - Fork 17
Update syntax for Solidity 0.8.8 #58
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
Conversation
This seems reasonable.
I think if they are sufficiently common it is a good thing to draw attention to, especially as it is a new feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
src/languages/solidity.js
Outdated
'name creationCode runtimeCode interfaceId min max' | ||
'send transfer call callcode delegatecall staticcall ' + | ||
'balance code codehash ' + | ||
'wrap unwrap ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was pre-existing but it would be nice to have comments that explain where these groupings come from: Address / user types, type information etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I could add that!
I'm not sure I understand what you're saying here. I'm saying that if I don't think I understand what your answer to that question is. |
Oh, right! There's not enough information to disambiguate. I misunderstood your 2nd point. However I still think that if this is a new feature we should draw attention to it and wait for feedback that it is noisy. This Github search suggests |
OK, cool, I'll go ahead with that then. I'll go back and add the comments you suggested and then merge / release this. I asked about |
Syntax updates for Solidity 0.8.8:
I reclassified
type
as a keyword rather than a builtin, now that it can be used for custom type declarations.I highlighed
wrap
andunwrap
as builtins when used as a member of something else. I'm a little uncertain whether this is a good idea; it's possible thatwrap
andunwrap
functions are sufficiently common that highlighting this would be annoying, and it would be better to just omit highlighting for these. So, uh, please let me know what you think of this. (@gnidan, I can't add you as a reviewer, but do you have an opinion on this?)