search term:

tree-sitter-scala 0.26.2

Hi everyone. On behalf of the tree-sitter-scala project, I am happy to announce tree-sitter-scala 0.26.2. The first two segments of the version number comes from the tree-sitter-cli that was used to generate the parser, and the last segment is our actual version number. For example, tree-sitter-scala 0.26.2 uses tree-sitter 0.26.x.

About tree-sitter-scala

tree-sitter-scala is a Scala parser in C language, generated using Tree-sitter CLI, and conforming to the Tree-sitter API. Tree-sitter parsers are generally fast, incremental, and robust (ok with partial errors). We publish Rust binding to crates.io.

Tree-sitter parsers are adopted by editors like NeoVim, Emacs, Helix, Zed, and Scastie to provide language features like syntax highlight, folding, and more (supposedly part of GitHub.com).

Highlights

Full release notes are at https://github.com/tree-sitter/tree-sitter-scala/releases/tag/v0.26.2.

Parsing improvements

Parsing % for Scala 2 library, Scala 2 compiler, Scala 3 compiler, and Lichess are as follows:

tree-sitter-scala scala-library scalac Dotty Lichess
0.26.2 100% 100% 100% 100%
0.26.0 100% 99% 93% 98%
0.25.0 100% 96% 83% 92%
0.24.0 100% 96% 83% 84%
0.23.0 100% 96% 83% 84%
0.22.0 100% 97% 85% _
0.21.0 100% 96% 85% _
0.20.2 100% 96% 84% _
0.20.1 98% 93% 83% _
0.20.0 89% 68% 66% _

0.26.2 offers significant improvement of both Scala 2 and Scala 3 parsing accuracy. 0.26.2 parses both Scala 2 and Scala 3 compiler code bases 100%.

Participation

tree-sitter-scala 0.26.0 was brought to you by 6 contributors:

$ git shortlog -sn --no-merges v0.26.0...
    79  TATSUNO β€œTaz” Yasuhiro
    28  GitHub
     9  Vasili Markoukin
     4  Eugene Yokota
     2  Ilnar Gazizov
     2  Vasil Markoukin
     1  orbisai0security

Thanks to everyone who’s helped improve tree-sitter-scala by using them, reporting bugs, improving our documentation, and submitting and reviewing pull requests.


FYI - Scala Days talk by Anton

In August 2025, Tree-Sitter Scala co-maintainer Anton Sviridov gave a Tree Sitter + multi-platform talk at Scala Days. Check out Indoor Vivants for the links to code, slides, and the recording.