Skip to content

Commit fc1e9a6

Browse files
authored
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
1 parent c622882 commit fc1e9a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

languages.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ name = "java"
731731
scope = "source.java"
732732
injection-regex = "java"
733733
file-types = ["java"]
734-
roots = ["pom.xml", "build.gradle"]
734+
roots = ["pom.xml", "build.gradle", "build.gradle.kts"]
735735
language-server = { command = "jdtls" }
736736
indent = { tab-width = 4, unit = " " }
737737

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

0 commit comments

Comments
 (0)