Skip to content
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

Update ANTLR grammar and make it fuzzy #33

Merged
merged 4 commits into from
Nov 30, 2023
Merged

Conversation

fwendland
Copy link
Collaborator

Use latest ANTLR grammar from solidity-parser and make it fuzzy by allowing:

  • newline as statement terminator character
  • partial statements/expressions without contract frame

@fwendland fwendland added the enhancement New feature or request label Nov 30, 2023
@konradweiss konradweiss merged commit f0c5f81 into main Nov 30, 2023
1 check failed
@@ -13,11 +20,12 @@ sourceUnit
| contractDefinition
| enumDefinition
| structDefinition
| contractPart
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fwendland does this not mean that eventDefinition modifierDefinition and customErrorDefinition can no longer appear in a snippet outside of a contract and while stateVariableDeclaration can still appear it is not inside of the ()* clause and can therefore not appear in multiples?

@fwendland fwendland deleted the fw/update-fuzzy-grammar branch December 1, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants