Skip to content

Conversation

@sambacha
Copy link
Contributor

  • Fixed the contract inheritance pattern to properly handle commas between parent contracts

  • Added a specific pattern for function parameters to correctly scope them

  • Fixed the event declarations to properly scope the event name, parameters, and indexed modifier

  • Fixed the enum declarations to properly scope the enum name, members, and commas

  • Fixed the mapping declarations to properly scope the mapping keyword, parameters, and => operator

  • Fixed the struct declarations to properly scope the struct name, fields, and semicolons

-Fixed the user-defined type declarations to properly scope the type keyword, name, is keyword, and base type

Copy link
Contributor Author

@sambacha sambacha left a comment

Choose a reason for hiding this comment

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

Contract declarations with inheritance - the is keyword and contract names aren't being properly scoped

Function declarations - parameters, modifiers, and return types aren't being properly scoped

Punctuation - commas, parentheses, etc. aren't being properly scoped

Various other token scoping issues

@sambacha sambacha merged commit f32d80d into feat-v2 Feb 25, 2025
1 check failed
sambacha added a commit that referenced this pull request Feb 25, 2025
* feat(vscode): prepare v2 release

* fix(vscode): activate on load

Certain extensions require this setting to work correctly, for example <https://github.com/runtimeverification/ercx-vscode/blob/master/README.md#:~:text=You%20need%20to%20install%20an%20extension%20for%20Solidity%20syntax%20highlighting%20for%20this%20extension%20to%20work%20as%20it%20activates%20onLanguage%3Asolidity>

* feat: add gaes.tmLanguage.jsonc (#21)

see <https://github.com/fjl/geas>

* feat(solidity): add support for custom types (#19)

* test(solidity): unit test tmlanguage syntax (#26)

* ci(nodejs-ci): upgrade

* fix(ci): on pull request

* fix(vsce): use @vscode/vsce

* fix(solidity): stand back i know regex

* feat(vsce): v2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant