update scala roots (#4701)

This adds in a couple more roots that are common in Scala.

- `build.sc` which is used in Mill
- `build.gradle` for Scala Gradle projects
- `.scala-build` for scala-cli projects
This commit is contained in:
Chris Kipp 2022-11-11 14:49:56 +01:00 committed by GitHub
parent 7367abd6c6
commit d7be5463c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -997,7 +997,7 @@ source = { git = "https://github.com/UserNobody14/tree-sitter-dart", rev = "2d7f
[[language]] [[language]]
name = "scala" name = "scala"
scope = "source.scala" scope = "source.scala"
roots = ["build.sbt", "pom.xml"] roots = ["build.sbt", "build.sc", "build.gradle", "pom.xml", ".scala-build"]
file-types = ["scala", "sbt", "sc"] file-types = ["scala", "sbt", "sc"]
comment-token = "//" comment-token = "//"
indent = { tab-width = 2, unit = " " } indent = { tab-width = 2, unit = " " }