From d7f590bb6e64876aa6228312a3aa323ffd3d8231 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 21 Feb 2024 15:46:31 +0100 Subject: [PATCH] Use groovy support when editing Gradle files (#9681) The Gradle build tool provides two DSLs for configuring builds. On is based on Groovy and Gradle build files written in Gradle Groovy DSL use *.gradle file ending. This change adds `gradle` to the supported file types of the groovy language configuration. --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 1c4c612673af2..b158606b037b8 100644 --- a/languages.toml +++ b/languages.toml @@ -3130,7 +3130,7 @@ source = { git = "https://github.com/apple/tree-sitter-pkl", rev = "c03f04a313b7 name = "groovy" language-id = "groovy" scope = "source.groovy" -file-types = ["groovy", "jenkinsfile", { glob = "Jenkinsfile" }, { glob = "Jenkinsfile.*" }] +file-types = ["gradle", "groovy", "jenkinsfile", { glob = "Jenkinsfile" }, { glob = "Jenkinsfile.*" }] shebangs = ["groovy"] comment-token = "//" indent = { tab-width = 2, unit = " " }