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

chore(solidity): update to newest grammar and fix queries #12457

Merged
merged 8 commits into from
Jan 16, 2025

Conversation

beeb
Copy link
Contributor

@beeb beeb commented Jan 9, 2025

This PR updates the solidity grammar to the latest version and fixes the queries to work with it.

At the same time, a few improvements were made:

  • user-defined types are colored like types also in their definition statement
  • identifiers that are SCREAMING_SNAKE_CASE are colored as constants
  • add missing keywords: type, transient, immutable
  • fixed modifier invocation query
  • fix locals query for variable declaration and add constructor scope
  • change some textobject queries to use entry instead of parameter where it makes sense

@beeb beeb marked this pull request as draft January 9, 2025 07:50
@beeb
Copy link
Contributor Author

beeb commented Jan 9, 2025

Blocked by JoranHonig/tree-sitter-solidity#68

Many queries had to be fixed because of breaking changes to the grammar.

@the-mikedavis the-mikedavis added the A-language-support Area: Support for programming/text languages label Jan 9, 2025
@beeb beeb changed the title chore(solidity): add keyword highlight chore(solidity): update to newest grammar and fix queries Jan 15, 2025
@beeb beeb marked this pull request as ready for review January 15, 2025 16:44
@the-mikedavis the-mikedavis merged commit 29dda14 into helix-editor:master Jan 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants