Use tree-sitter-scala for Scala parsing
masterThe
tree-sitter-scala repository provides a Tree-sitter grammar for the Scala programming language. It is designed to support both Scala 2 and Scala 3 syntax, enabling incremental parsing, syntax highlighting, and code navigation for Scala codebases within any editor or tool that supports Tree-sitter.