Skip to content

Conversation

@belltoy
Copy link
Contributor

@belltoy belltoy commented Jan 9, 2026

Add Erlang support, use WhatsApp erlang tree-sitter. Including word list from OTP libraries.

Copilot AI review requested due to automatic review settings January 9, 2026 10:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds Erlang language support to the spell-checking tool by integrating the WhatsApp tree-sitter-erlang parser and including a comprehensive word list from OTP libraries.

Key changes:

  • Adds tree-sitter-erlang dependency (version 0.15.0)
  • Creates Erlang-specific tree-sitter query file for spell-checking
  • Includes a 580-word Erlang-specific dictionary
  • Provides example Erlang code and comprehensive tests

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 46 comments.

Show a summary per file
File Description
word_lists/erlang.txt New Erlang-specific word list with 580 entries from OTP libraries (contains 38 duplicate entries and minor formatting issues)
examples/example.erl Example Erlang file demonstrating spell-checking capabilities with intentional misspellings
crates/codebook/tests/test_erlang.rs Comprehensive test suite for Erlang spell-checking functionality
crates/codebook/src/queries/erlang.scm Tree-sitter query definitions for capturing Erlang comments, strings, atoms, variables, and function names
crates/codebook/src/queries.rs Registers Erlang language type and settings in the spell-checker
crates/codebook/src/dictionaries/combined.gen.txt Generated combined dictionary file including Erlang words
crates/codebook/Cargo.toml Adds tree-sitter-erlang workspace dependency
Cargo.toml Specifies tree-sitter-erlang version 0.15.0
Cargo.lock Lock file update with tree-sitter-erlang dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 9, 2026 11:19
@belltoy belltoy force-pushed the feature/erlang branch 3 times, most recently from fffd51a to 49c2580 Compare January 9, 2026 11:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 18 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 9, 2026 11:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 9, 2026 11:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

belltoy added a commit to belltoy/codebook that referenced this pull request Jan 9, 2026
@blopker
Copy link
Owner

blopker commented Jan 9, 2026

Ooof, copilot went off the rails on flagging spelling issues. I've pushed instructions to avoid that in the future.

Anyway, thanks for putting this together! Is it ready for review?

@belltoy
Copy link
Contributor Author

belltoy commented Jan 10, 2026

Yes. It is ready.

Copilot AI review requested due to automatic review settings January 17, 2026 05:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@blopker blopker merged commit c02b5bd into blopker:main Jan 19, 2026
15 of 16 checks passed
@blopker
Copy link
Owner

blopker commented Jan 19, 2026

Looks great, thank you!

@blopker
Copy link
Owner

blopker commented Jan 19, 2026

New version is out! If you're using Zed, we'll need to wait for this PR to merge before Erlang works correctly though: zed-industries/extensions#4551

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