about summary refs log tree commit diff
path: root/third_party/gerrit/0002-Syntax-highlight-rules.pl.patch
blob: d0da61dd0f216acd4d60781a62fd43ec8a9f99d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 63f1ff6ea749ae2af29a53463bca81bc3f4bf25b Mon Sep 17 00:00:00 2001
From: Luke Granger-Brown <git@lukegb.com>
Date: Thu, 2 Jul 2020 23:02:43 +0100
Subject: [PATCH 2/3] Syntax highlight rules.pl

---
 .../app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts     | 1 +
 resources/com/google/gerrit/server/mime/mime-types.properties    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts b/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts
index d1e89920cc..5d62af1c64 100644
--- a/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts
+++ b/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts
@@ -72,6 +72,7 @@ const LANGUAGE_MAP = new Map<string, string>([
   ['text/x-perl', 'perl'],
   ['text/x-pgsql', 'pgsql'], // postgresql
   ['text/x-php', 'php'],
+  ['text/x-prolog', 'prolog'],
   ['text/x-properties', 'properties'],
   ['text/x-protobuf', 'protobuf'],
   ['text/x-puppet', 'puppet'],
diff --git a/resources/com/google/gerrit/server/mime/mime-types.properties b/resources/com/google/gerrit/server/mime/mime-types.properties
index 97f1ff835b..85d630340f 100644
--- a/resources/com/google/gerrit/server/mime/mime-types.properties
+++ b/resources/com/google/gerrit/server/mime/mime-types.properties
@@ -208,6 +208,7 @@ rq = application/sparql-query
 rs = text/x-rustsrc
 rss = application/xml
 rst = text/x-rst
+rules.pl = text/x-prolog
 README.md = text/x-gfm
 s = text/x-gas
 sas = text/x-sas
-- 
2.45.1