-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[BREAKING] Add new reserved keywords. #3627
Conversation
If you add |
6de5f25
to
4522978
Compare
test/libsolidity/SolidityParser.cpp
Outdated
}; | ||
|
||
|
||
for (const auto& keyword : keywords) { |
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.
Coding style: no space in front of :
except in a ? b : c
.
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.
And {
on a line of its own.
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.
Thanks for pointing that out :)
Please also add a line to |
Looks good! I'm not adding a positive review on purpose, so we do not accidentally merge this PR. |
test/libsolidity/SolidityParser.cpp
Outdated
@@ -1164,6 +1164,56 @@ BOOST_AUTO_TEST_CASE(constant_is_keyword) | |||
CHECK_PARSE_ERROR(text, "Expected identifier"); | |||
} | |||
|
|||
BOOST_AUTO_TEST_CASE(keyword_is_reserved) |
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.
Can this test case be extracted and merged with current keywords?
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.
OK, see #3633
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.
There is a section in the documentation listing the reserved keywords, that should be updated too.
eb163bc
to
1a5e5f0
Compare
1a5e5f0
to
9f30e74
Compare
Please rebase since #3633 was merged. |
We should also add |
Please do that and do not include it in the commit messages. |
d03676d
to
8575b5b
Compare
8575b5b
to
f62820c
Compare
1a680bf
to
8e1e611
Compare
I removed the |
@chriseth I find the list of new keywords (and especially |
10d2a1e
to
911cead
Compare
100%: constructor and emit |
911cead
to
c6434ea
Compare
c6434ea
to
2106f82
Compare
2106f82
to
521f5fc
Compare
Rebased. |
@axic We still need to decide whether we want to keep this PR at all or which subset to keep. |
I think we should just merge this. The only debatable one I think is |
Also if this is merged first and |
It seems |
I'd take a shortcut and merge the non-contentious ones here and open a new PR for the rest. |
521f5fc
to
fb9dff1
Compare
Removed |
fb9dff1
to
f35b5e7
Compare
Confirmed against the issue. |
f35b5e7
to
e4b7b21
Compare
Removed |
Closes #2182.