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
This commit is contained in:
Diego Pontoriero 2023-05-04 18:02:19 -07:00 committed by GitHub
parent c6228825fd
commit fc1e9a6ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -731,7 +731,7 @@ name = "java"
scope = "source.java" scope = "source.java"
injection-regex = "java" injection-regex = "java"
file-types = ["java"] file-types = ["java"]
roots = ["pom.xml", "build.gradle"] roots = ["pom.xml", "build.gradle", "build.gradle.kts"]
language-server = { command = "jdtls" } language-server = { command = "jdtls" }
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
@ -1159,7 +1159,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", "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"] file-types = ["scala", "sbt", "sc"]
comment-token = "//" comment-token = "//"
indent = { tab-width = 2, unit = " " } indent = { tab-width = 2, unit = " " }