2024-07-07 20:12:28 +02:00
|
|
|
From 216843cff4a8e41ad9887118751a412c1a22ce72 Mon Sep 17 00:00:00 2001
|
2022-09-11 18:34:47 +02:00
|
|
|
From: Luke Granger-Brown <git@lukegb.com>
|
|
|
|
Date: Thu, 2 Jul 2020 23:02:32 +0100
|
|
|
|
Subject: [PATCH 1/3] Syntax highlight nix
|
|
|
|
|
|
|
|
---
|
|
|
|
.../app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts | 1 +
|
|
|
|
resources/com/google/gerrit/server/mime/mime-types.properties | 1 +
|
|
|
|
2 files changed, 2 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts b/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts
|
2024-07-07 20:12:28 +02:00
|
|
|
index 50742903de..d1e89920cc 100644
|
2022-09-11 18:34:47 +02:00
|
|
|
--- a/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts
|
|
|
|
+++ b/polygerrit-ui/app/embed/diff/gr-syntax-layer/gr-syntax-layer-worker.ts
|
2024-07-07 20:12:28 +02:00
|
|
|
@@ -98,6 +98,7 @@ const LANGUAGE_MAP = new Map<string, string>([
|
2022-09-11 18:34:47 +02:00
|
|
|
['text/x-vhdl', 'vhdl'],
|
|
|
|
['text/x-yaml', 'yaml'],
|
|
|
|
['text/vbscript', 'vbscript'],
|
|
|
|
+ ['text/x-nix', 'nix'],
|
|
|
|
]);
|
|
|
|
|
2024-07-07 20:12:28 +02:00
|
|
|
const CLASS_PREFIX = 'gr-syntax gr-syntax-';
|
2022-09-11 18:34:47 +02:00
|
|
|
diff --git a/resources/com/google/gerrit/server/mime/mime-types.properties b/resources/com/google/gerrit/server/mime/mime-types.properties
|
2024-07-07 20:12:28 +02:00
|
|
|
index 642ef474a5..97f1ff835b 100644
|
2022-09-11 18:34:47 +02:00
|
|
|
--- a/resources/com/google/gerrit/server/mime/mime-types.properties
|
|
|
|
+++ b/resources/com/google/gerrit/server/mime/mime-types.properties
|
2024-07-07 20:12:28 +02:00
|
|
|
@@ -154,6 +154,7 @@ msgenny = text/x-msgenny
|
|
|
|
mts = application/typescript
|
2022-09-11 18:34:47 +02:00
|
|
|
nb = text/x-mathematica
|
|
|
|
nginx.conf = text/x-nginx-conf
|
|
|
|
+nix = text/x-nix
|
|
|
|
nsh = text/x-nsis
|
|
|
|
nsi = text/x-nsis
|
|
|
|
nt = text/n-triples
|
|
|
|
--
|
2024-07-07 20:12:28 +02:00
|
|
|
2.45.1
|
2022-09-11 18:34:47 +02:00
|
|
|
|