From 827c929cd557ccf32c569c24297d3db4aca90526 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Sun, 2 Feb 2020 10:18:23 +0100 Subject: [PATCH 1/2] Highlight BUILD.bazel as python Bazel supports both BUILD and BUILD.bazel files and in this issue: [1] there is a discussion to prefer BUILD.bazel over BUILD naming convention. Detect BUILD.bazel files as Python code in addition to BUILD files. [1] https://github.com/bazelbuild/bazel/issues/4517 Change-Id: Iabc719b914fcd08ef6e73c314f09f924540c3794 --- resources/com/google/gerrit/server/mime/mime-types.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/com/google/gerrit/server/mime/mime-types.properties b/resources/com/google/gerrit/server/mime/mime-types.properties index 7c94f325c6..d35816e266 100644 --- a/resources/com/google/gerrit/server/mime/mime-types.properties +++ b/resources/com/google/gerrit/server/mime/mime-types.properties @@ -13,6 +13,7 @@ bucklet = text/x-python bzl = text/x-python BUCK = text/x-python BUILD = text/x-python +BUILD.bazel = text/x-python c = text/x-csrc cfg = text/x-ttcn-cfg cl = text/x-common-lisp From 11bce058a0ae97b9579ad5370e27d51c108fad49 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Sun, 2 Feb 2020 10:30:14 +0100 Subject: [PATCH 2/2] Highlight WORKSPACE as python Change-Id: I2f46d6de7989f3951fcea49475c52ea216b25c94 --- resources/com/google/gerrit/server/mime/mime-types.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/com/google/gerrit/server/mime/mime-types.properties b/resources/com/google/gerrit/server/mime/mime-types.properties index d35816e266..84eef7725b 100644 --- a/resources/com/google/gerrit/server/mime/mime-types.properties +++ b/resources/com/google/gerrit/server/mime/mime-types.properties @@ -248,6 +248,7 @@ vm = text/velocity vtl = text/velocity webidl = text/x-webidl wsdl = application/xml +WORKSPACE = text/x-python xaml = application/xml xhtml = text/html xml = application/xml