-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add extra token for assembly assignment #6023
Conversation
ba90dbd
to
bc09196
Compare
bc09196
to
a1012c6
Compare
Codecov Report
@@ Coverage Diff @@
## develop #6023 +/- ##
===========================================
- Coverage 88.37% 88.33% -0.05%
===========================================
Files 362 361 -1
Lines 34876 34877 +1
Branches 4136 4128 -8
===========================================
- Hits 30823 30809 -14
- Misses 2677 2694 +17
+ Partials 1376 1374 -2
|
a1012c6
to
280d9a4
Compare
Updated |
I think this needs a changelog entry. |
280d9a4
to
ae08796
Compare
UpdateD |
ae08796
to
6b19c0a
Compare
Fixed failing test (forgot error msg update) |
3ac6580
to
f93f0e2
Compare
|
I forgot something and I'll try to fix the coverage, too |
f93f0e2
to
f493608
Compare
Okay, good to go now. |
f493608
to
341e1b1
Compare
Condensed the logic for the AssembylAssign / Comma syntax even more |
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.
Please add a test into libsolidity/SolidityScanner.cpp
Adding an extra token for := prevents whitespace between : = being valid
341e1b1
to
f395d5b
Compare
|
|
||
BOOST_AUTO_TEST_CASE(assembly_multiple_assign) | ||
{ | ||
Scanner scanner(CharStream("let a, b, c := 1", "")); |
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.
To be clear these supposed to test compounding similar characters and see if they are tokenised properly, such as:
::=
, =:=
, :=:=
, etc.
Adding an extra token for := prevents whitespace between : = being valid
Fixes #4185