From 388cade8fdc9f82f3def39e92464e68bd93bbb5c Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Fri, 11 Nov 2022 14:49:56 +0100 Subject: [PATCH] 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 --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 00eff068e51d..4013adb668c4 100644 --- a/languages.toml +++ b/languages.toml @@ -997,7 +997,7 @@ source = { git = "https://github.com/UserNobody14/tree-sitter-dart", rev = "2d7f [[language]] name = "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"] comment-token = "//" indent = { tab-width = 2, unit = " " }