-
Notifications
You must be signed in to change notification settings - Fork 75
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
Handle virtual
and override
modifiers
#221
Comments
can we close this issue now @fvictorio ? |
@mattiaerre |
Is there are workaround or setting to avoid prettier deleting keywords? @mattiaerre As this maybe an issue with new keywords introduced in the future, different versions of solidity / antlr |
Our plugin reprints the code from the AST that we get from the parser. |
if the problem continues the whole file could be skipped by adding it to |
Ok thanks, I think I will disable it by default for the time being as I just had another issue, and let "advanced" users enable it themselves until things settle a bit. Keep the good work ! juanfranblanco/vscode-solidity#168 Edit: I am just adding a setting to select the formatter None, Prettier and set Prettier as the default. |
This can't be done at the moment because the parser is not exposing this information. See Consensys/solidity-parser-antlr#2
When that is solver, we should handle these modifiers.
virtual
is easy: we should just add the literalvirtual
after the visibility modifier (at least that's where it's placed in the examples).override
might be followed by some class specifiers, so that should be handled properly. How to do it will depend on how the parser exposes this information.The text was updated successfully, but these errors were encountered: