Skip to content

Update tree-sitter grammar for modern Roc syntax - #12

Merged
h2000 merged 1 commit into
h2000:mainfrom
lukewilliamboswell:update-tree-sitter-roc
Aug 21, 2026
Merged

Update tree-sitter grammar for modern Roc syntax#12
h2000 merged 1 commit into
h2000:mainfrom
lukewilliamboswell:update-tree-sitter-roc

Conversation

@lukewilliamboswell

Copy link
Copy Markdown
Contributor

Summary

  • update tree-sitter-roc to the modern Roc syntax grammar from Support modern Roc syntax faldor20/tree-sitter-roc#43
  • sync the generated Zed highlight query and validate its capture names
  • improve Zed-specific brackets, indentation, outline, and text-object queries
  • remove string injections that captured delimiters instead of string content
  • avoid quote auto-closing inside comments

Validation

  • cargo fmt -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test
  • cargo build --target wasm32-wasip2
  • all Zed query files compile against the updated grammar
  • scripts/check-highlight-captures.sh
  • manual QA against current Roc sources and examples

Dependency

Depends on faldor20/tree-sitter-roc#43. The manifest currently pins its published head commit (fc80e44f452314518550d947bcfdde6c3001a405) and should be updated if that branch is rebased before merge.

@h2000
h2000 merged commit 690f4f6 into h2000:main Aug 21, 2026
1 check 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.

2 participants