about summary refs log tree commit diff
path: root/third_party/gerrit/default.nix
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2020-06-14T11·37+0100
committerlukegb <lukegb@tvl.fyi>2020-06-14T17·24+0000
commit89b3ab939bd4e04ce22cc0bb8cc143dee7e2480c (patch)
tree3afcb827ab2e0a0e3c765fc2d514cd4a859b75e7 /third_party/gerrit/default.nix
parent5ae0e44d1b02231dff67388a7ac57cf82a14926b (diff)
feat(gerrit): Syntax highlight rules.pl as Prolog. r/952
This adds support for overriding the detected languages based on the
filename - we assume here that rules.pl will always map to a Prolog
file.

I could've overridden the entire default language to Prolog, since it's
unlikely that we'll have any Perl here, but given the relative
popularity of the two languages I opted to just override the file we
know we'll have (because it's used by Gerrit itself).

https://usercontent.irccloud-cdn.com/file/yhZZx1nd/highlighted_prolog.png

Change-Id: I26a7e6dab191e0b80a027b026f884020a1f07178
Reviewed-on: https://cl.tvl.fyi/c/depot/+/254
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/gerrit/default.nix')
-rw-r--r--third_party/gerrit/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/gerrit/default.nix b/third_party/gerrit/default.nix
index 1db37afedc..c7ab47cd66 100644
--- a/third_party/gerrit/default.nix
+++ b/third_party/gerrit/default.nix
@@ -42,6 +42,7 @@ pkgs.buildBazelPackage {
   patches = [
     ./use_detzip.patch
     ./syntax_highlight_nix.patch
+    ./syntax_highlight_rules_pl.patch
   ];
 
   bazelTarget = "release";