Skip to content

Update Treesitter tags naming convention#9

Merged
KidkArolis merged 6 commits intorescript-lang:mainfrom
sgrowe:sam/updates
Sep 7, 2025
Merged

Update Treesitter tags naming convention#9
KidkArolis merged 6 commits intorescript-lang:mainfrom
sgrowe:sam/updates

Conversation

@sgrowe
Copy link
Copy Markdown
Contributor

@sgrowe sgrowe commented Sep 4, 2025

Updates the treesitter tags to use the Zed naming conventions (see https://github.com/zed-industries/zed/blob/main/crates/languages/src/typescript/textobjects.scm). e.g:

  • @function.inner -> @function.inside
  • @function.outer -> @function.around
  • etc...

If you're using vim mode then you can do fancy stuff like cif (change inside function) or yat (yank around HTML tag, copy the whole tag and it's contents basically)

Also updated the grammars.rescript setting and the zed_extension_api crate to the latest versions

@KidkArolis KidkArolis merged commit 4b26f94 into rescript-lang:main Sep 7, 2025
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.

2 participants