about summary refs log tree commit diff
path: root/third_party/gerrit/0002-Syntax-highlight-nix.patch
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2020-11-27T17·39+0000
committerlukegb <lukegb@tvl.fyi>2020-11-29T02·26+0000
commit77be22549a436d0869d8f8c91c09e5b3219567b7 (patch)
tree8765087c25d6867723dcf00c3dd4df5c18907cf2 /third_party/gerrit/0002-Syntax-highlight-nix.patch
parent36cf7bef24bbd5ffccc8bac47a8c4d10dd5a265c (diff)
chore(3p/gerrit): update to latest upstream HEAD r/1957
Change-Id: Ia7b17ca83ace164881a4dd8b0288741489bc467c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2164
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/gerrit/0002-Syntax-highlight-nix.patch')
-rw-r--r--third_party/gerrit/0002-Syntax-highlight-nix.patch28
1 files changed, 14 insertions, 14 deletions
diff --git a/third_party/gerrit/0002-Syntax-highlight-nix.patch b/third_party/gerrit/0002-Syntax-highlight-nix.patch
index 4353f1e4774d..a87529d8c84a 100644
--- a/third_party/gerrit/0002-Syntax-highlight-nix.patch
+++ b/third_party/gerrit/0002-Syntax-highlight-nix.patch
@@ -1,24 +1,24 @@
-From 1310ad5e56248bf216774cd13e828ba76e0c6f65 Mon Sep 17 00:00:00 2001
+From 18a008f8bddfa529296357620bbd9a97de6b2879 Mon Sep 17 00:00:00 2001
 From: Luke Granger-Brown <git@lukegb.com>
 Date: Thu, 2 Jul 2020 23:02:32 +0100
-Subject: [PATCH 2/7] Syntax highlight nix
+Subject: [PATCH 2/6] Syntax highlight nix
 
 ---
- .../app/elements/diff/gr-syntax-layer/gr-syntax-layer.js         | 1 +
+ .../app/elements/diff/gr-syntax-layer/gr-syntax-layer.ts         | 1 +
  1 file changed, 1 insertion(+)
 
-diff --git a/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.js b/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.js
-index 6399c4a469..480d2946c3 100644
---- a/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.js
-+++ b/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.js
-@@ -99,6 +99,7 @@ const LANGUAGE_MAP = {
-   'text/x-vhdl': 'vhdl',
-   'text/x-yaml': 'yaml',
-   'text/vbscript': 'vbscript',
-+  'application/x-mix-transfer': 'nix',
- };
+diff --git a/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.ts b/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.ts
+index f5e5e047bc..0c3bb40ce4 100644
+--- a/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.ts
++++ b/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.ts
+@@ -105,6 +105,7 @@ const LANGUAGE_MAP = new Map<string, string>([
+   ['text/x-vhdl', 'vhdl'],
+   ['text/x-yaml', 'yaml'],
+   ['text/vbscript', 'vbscript'],
++  ['application/x-mix-transfer', 'nix'],
+ ]);
  const ASYNC_DELAY = 10;
  
 -- 
-2.27.0
+2.29.2