a5c7e03dbd
Firefox doesn't implement the IE6 fromElement/toElement, and it's not in the MouseEvent spec (at the moment). Replace with the worse-named but better-specified target and relatedTarget attributes instead. Upstream change: https://gerrit-review.googlesource.com/q/I9eeb26c032a38de9d7185749373c7982c796acb2 Change-Id: I9f9a1eb9342bc80b91b5b364a04cc5fa9a7ccaeb Reviewed-on: https://cl.tvl.fyi/c/depot/+/1442 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
24 lines
841 B
Diff
24 lines
841 B
Diff
From 1310ad5e56248bf216774cd13e828ba76e0c6f65 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.js | 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',
|
|
};
|
|
const ASYNC_DELAY = 10;
|
|
|
|
--
|
|
2.27.0
|
|
|