From 472a27e4f2e9ca6fe4044741087e1bc436774008 Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Sat, 21 Jun 2025 07:00:55 -0700 Subject: [PATCH] feat(languages): detect BUCK files as starlark (#13810) Co-authored-by: Yesudeep Mangalapilly --- languages.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/languages.toml b/languages.toml index b494d9983..91c5da666 100644 --- a/languages.toml +++ b/languages.toml @@ -2512,8 +2512,8 @@ source = { git = "https://github.com/sogaiu/tree-sitter-clojure", rev = "e57c569 [[language]] name = "starlark" scope = "source.starlark" -injection-regex = "(starlark|bzl|bazel)" -file-types = ["bzl", "bazel", "star", { glob = "BUILD" }, { glob = "BUILD.*" }, { glob = "Tiltfile" }, { glob = "WORKSPACE" }, { glob = "WORKSPACE.bzlmod" }] +injection-regex = "(starlark|bzl|bazel|buck)" +file-types = ["bzl", "bazel", "star", { glob = "BUILD" }, { glob = "BUCK" }, { glob = "BUILD.*" }, { glob = "Tiltfile" }, { glob = "WORKSPACE" }, { glob = "WORKSPACE.bzlmod" }] comment-token = "#" indent = { tab-width = 4, unit = " " } language-servers = [ "starpls" ]