0dba3ce133
This reverts commit 9551b628d0
(i.e. this is a rollfoward for https://cl.tvl.fyi/c/depot/+/2817)
Change-Id: Iaffcf1cdbe119d26ecb09cc88f9a56436b374c08
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2870
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
24 lines
874 B
Diff
24 lines
874 B
Diff
From 556c4f189d0ed41fb5ad59545ffcf5e957bbb820 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
|
|
|
|
---
|
|
.../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.ts b/polygerrit-ui/app/elements/diff/gr-syntax-layer/gr-syntax-layer.ts
|
|
index 081d28d749..2762ccc625 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
|
|
@@ -99,6 +99,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.29.2
|
|
|