-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
Fix solidity lexer's handling of inline assembly #1040
Conversation
Syntax highlighting in solidity breaks to due the assembly rule improperly pushing the state (it pushes once for the keyword, then again for the '{')
fixes assembly to not error out when '.' is used
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.
Mind adding a text for this change?
Sorry, I've now edited the test to include inline assembly. |
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.
Yay!
Test is failing slightly. |
Addes a newline to the end
That's really strange, cause the test worked locally. It seems there is an added newline at the end despite there not being one in the file? In any case, I went ahead and added it, it should work now hopefully. Sorry for the inconvenience! |
Thanks! |
Syntax highlighting in solidity breaks to due the assembly rule improperly pushing the state (it pushes once for the keyword, then again for the '{') This fix merges the opening '{' into the assembly keyword pattern.
Link to chroma playground

