Skip to content

feat: add Gleam syntax highlighting support#5962

Closed
anntnzrb wants to merge 351 commits intoanomalyco:devfrom
anntnzrb:feat/gleam-syntax-highlighting
Closed

feat: add Gleam syntax highlighting support#5962
anntnzrb wants to merge 351 commits intoanomalyco:devfrom
anntnzrb:feat/gleam-syntax-highlighting

Conversation

@anntnzrb
Copy link
Contributor

Summary

Adds Gleam syntax highlighting by registering the tree-sitter-gleam parser with nvim-treesitter queries.

Closes #5961

Blocked on

gleam-lang/tree-sitter-gleam#137

The upstream tree-sitter-gleam parser doesn't currently publish WASM binaries. Once that PR is merged and a release is published, update the version in the WASM URL and this PR can be merged.

actions-user and others added 29 commits December 29, 2025 17:56
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
CasualDeveloper and others added 24 commits December 29, 2025 17:56
…nomalyco#6345)

Co-authored-by: Somair Ansar <somairansar@Somairs-MacBook-Air.local>
Co-authored-by: Ivan Pantic <panta@talentkit.io>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@anntnzrb anntnzrb marked this pull request as ready for review December 29, 2025 22:57
@anntnzrb
Copy link
Contributor Author

Update

Similar to the recent Nix syntax highlighting (#6386), upstream gleam-lang/tree-sitter-gleam doesn't publish WASM releases (see gleam-lang/tree-sitter-gleam#100 and gleam-lang/tree-sitter-gleam#137 discussion).

Solution:

  • WASM from my fork: anntnzrb/tree-sitter-gleam (synced with upstream, adds release workflow)
  • Queries from upstream parser repo (works better than nvim-treesitter)

When/if upstream decides to publish releases, it's a one-line URL swap.

CC @rekram1-node

@anntnzrb
Copy link
Contributor Author

sorry, idk what happened in here.

@anntnzrb anntnzrb closed this Dec 29, 2025
@anntnzrb anntnzrb deleted the feat/gleam-syntax-highlighting branch December 29, 2025 23:05
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.

Add Gleam syntax highlighting support