about summary refs log tree commit diff
path: root/third_party/gerrit/syntax_highlight_nix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gerrit/syntax_highlight_nix.patch')
-rw-r--r--third_party/gerrit/syntax_highlight_nix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/gerrit/syntax_highlight_nix.patch b/third_party/gerrit/syntax_highlight_nix.patch
new file mode 100644
index 0000000000..2a7791c756
--- /dev/null
+++ b/third_party/gerrit/syntax_highlight_nix.patch
@@ -0,0 +1,12 @@
+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 1a0bbd9f50..0f2786a911 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;
+