Skip to content

Commit bef7e37

Browse files
Dominator008marijnh
authored andcommitted
[mode/meta] Recognize Bazel, Buck and Pants build files as Python in mode/meta.js
BUCK, BUILD, *.BUILD and *.bzl files are build files for the three build systems mentioned, and they are all valid Python files.
1 parent 300f7f8 commit bef7e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
{name: "PowerShell", mime: "application/x-powershell", mode: "powershell", ext: ["ps1", "psd1", "psm1"]},
106106
{name: "Properties files", mime: "text/x-properties", mode: "properties", ext: ["properties", "ini", "in"], alias: ["ini", "properties"]},
107107
{name: "ProtoBuf", mime: "text/x-protobuf", mode: "protobuf", ext: ["proto"]},
108-
{name: "Python", mime: "text/x-python", mode: "python", ext: ["py", "pyw"]},
108+
{name: "Python", mime: "text/x-python", mode: "python", ext: ["BUILD", "bzl", "py", "pyw"], file: /^(BUCK|BUILD)$/},
109109
{name: "Puppet", mime: "text/x-puppet", mode: "puppet", ext: ["pp"]},
110110
{name: "Q", mime: "text/x-q", mode: "q", ext: ["q"]},
111111
{name: "R", mime: "text/x-rsrc", mode: "r", ext: ["r"], alias: ["rscript"]},

0 commit comments

Comments
 (0)