aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Pontoriero2023-05-05 01:02:19 +0000
committerGitHub2023-05-05 01:02:19 +0000
commitfc1e9a6ff936f9ceb7bb85c810130f49b42300c9 (patch)
tree339268effecd9ef07ea7ad16ea812d2c2b051492
parentc6228825fdde327af45be122e136b0a2749658e5 (diff)
languages: add build.gradle.kts to java and scala roots (#6970)
Gradle scripts written in kotlin use a .kts extension: https://docs.gradle.org/current/userguide/kotlin_dsl.html#sec:scripts
-rw-r--r--languages.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/languages.toml b/languages.toml
index 81ba471e..108e91a1 100644
--- a/languages.toml
+++ b/languages.toml
@@ -731,7 +731,7 @@ name = "java"
scope = "source.java"
injection-regex = "java"
file-types = ["java"]
-roots = ["pom.xml", "build.gradle"]
+roots = ["pom.xml", "build.gradle", "build.gradle.kts"]
language-server = { command = "jdtls" }
indent = { tab-width = 4, unit = " " }
@@ -1159,7 +1159,7 @@ source = { git = "https://github.com/UserNobody14/tree-sitter-dart", rev = "2d7f
[[language]]
name = "scala"
scope = "source.scala"
-roots = ["build.sbt", "build.sc", "build.gradle", "pom.xml", ".scala-build"]
+roots = ["build.sbt", "build.sc", "build.gradle", "build.gradle.kts", "pom.xml", ".scala-build"]
file-types = ["scala", "sbt", "sc"]
comment-token = "//"
indent = { tab-width = 2, unit = " " }