2020-07-03 00:28:39 +02:00
|
|
|
From f14cba31f2a9a75d06e58fd6313cc60d0cf5e690 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/4] Syntax highlight nix
|
|
|
|
|
|
|
|
---
|
|
|
|
.../app/elements/diff/gr-syntax-layer/gr-syntax-layer.js | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
2020-06-14 13:36:04 +02:00
|
|
|
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
|
2020-07-03 00:28:39 +02:00
|
|
|
index f1e930f177..cc937cff67 100644
|
2020-06-14 13:36:04 +02:00
|
|
|
--- 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
|
2020-07-03 00:28:39 +02:00
|
|
|
@@ -101,6 +101,7 @@ const LANGUAGE_MAP = {
|
2020-06-14 13:36:04 +02:00
|
|
|
'text/x-vhdl': 'vhdl',
|
|
|
|
'text/x-yaml': 'yaml',
|
|
|
|
'text/vbscript': 'vbscript',
|
|
|
|
+ 'application/x-mix-transfer': 'nix',
|
|
|
|
};
|
|
|
|
const ASYNC_DELAY = 10;
|
|
|
|
|
2020-07-03 00:28:39 +02:00
|
|
|
--
|
|
|
|
2.25.1
|
|
|
|
|