Skip to content

feat(gleam): add textobjects#855

Merged
kiyoon merged 1 commit intonvim-treesitter:mainfrom
locnide:feature/add-gleam
Mar 8, 2026
Merged

feat(gleam): add textobjects#855
kiyoon merged 1 commit intonvim-treesitter:mainfrom
locnide:feature/add-gleam

Conversation

@locnide
Copy link
Contributor

@locnide locnide commented Jan 7, 2026

This pull requests adds textobjects for gleam.

I mainly took inspiration from the rust textobject.scm.

Feel free to review, it is the first treesitter query file I wrote.

PR #715 is similar but seem abandonned.


Some thing that I still have to implement before merge:

  • trailing comma for parameter.outer. Currently trailing comma are ignored.
  • add @assign.inner but I’m not sure what it should select, see What is assignment inner ? #852
  • migrate my install to treesitter-nvim main… current CI issues mighnt be due to an obsolete parser I used for testing
  • rebase and squash

Some tags are not implemented in this PR:

  • @attribute couldn’t find examples in languages I know. Are there supposed to be type/class attributes ?
  • @comment.inner I would have to use directives
  • @frame, @loop and @regex not relevant
  • @scopename I do not know what it is

P.S. : I had trouble making make docs work #854

@locnide locnide marked this pull request as ready for review February 9, 2026 00:20
@locnide
Copy link
Contributor Author

locnide commented Feb 9, 2026

The PR should be ready but there is an error in CI I don’t understand and can’t reproduce.

The treesitter ./scripts/install-parsers.lua fails with 502 for gleam. I don’t understand why 502 (and not 40x) and only for gleam.
(and I can’t restart the job to check if it wasn’t a github issue)

@clason
Copy link
Collaborator

clason commented Feb 20, 2026

That's a Github brownout.

@clason clason requested a review from kiyoon February 20, 2026 18:57
@locnide locnide force-pushed the feature/add-gleam branch from a935213 to 9704bcb Compare March 7, 2026 18:04
@locnide locnide changed the title Feature/add gleam feat(gleam): add textobjects Mar 7, 2026
@kiyoon kiyoon merged commit efee9bb into nvim-treesitter:main Mar 8, 2026
3 checks passed
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.

3 participants