Classify `.BUILD.bazel` suffixed files as `TypeBuild` (#1433)

Co-authored-by: Tim Malmström <oreflow@users.noreply.github.com>
diff --git a/build/lex.go b/build/lex.go
index 30639ea..ace048a 100644
--- a/build/lex.go
+++ b/build/lex.go
@@ -142,7 +142,7 @@
 	}
 	base := basename[:len(basename)-len(ext)]
 	switch {
-	case ext == ".build" || base == "build" || strings.HasPrefix(base, "build."):
+	case ext == ".build" || base == "build" || strings.HasPrefix(base, "build.") || strings.HasSuffix(basename, ".build.bazel"):
 		return TypeBuild
 	case ext == ".workspace" || base == "workspace" || strings.HasPrefix(base, "workspace."):
 		return TypeWorkspace
diff --git a/build/lex_test.go b/build/lex_test.go
index 5d8dfdb..f7dd414 100644
--- a/build/lex_test.go
+++ b/build/lex_test.go
@@ -30,6 +30,7 @@
 		"BUILD.bazel.oss":     TypeBuild,
 		"BUILD.foo.bazel":     TypeBuild,
 		"BUILD.foo.oss":       TypeBuild,
+		"foo.BUILD.bazel":     TypeBuild,
 		"build.bzl":           TypeBzl,
 		"build.sky":           TypeDefault,
 		"WORKSPACE":           TypeWorkspace,