Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,14 @@ func getFileType(filename string) FileType {
switch ext {
case ".bzl":
return TypeBzl
case ".bxl": // Buck eXtension Language
return TypeBzl
case ".sky":
return TypeDefault
}
base := basename[:len(basename)-len(ext)]
switch {
case ext == ".build" || base == "build" || strings.HasPrefix(base, "build."):
case ext == ".build" || base == "build" || base == "buck" || strings.HasPrefix(base, "build."):
return TypeBuild
case ext == ".workspace" || base == "workspace" || strings.HasPrefix(base, "workspace."):
return TypeWorkspace
Expand Down