From 19baf6e80f75d768c692c26c09aa70f0b29b00d9 Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Tue, 11 Jul 2017 03:07:36 -0400 Subject: [PATCH] Add Perl syntax highlighting to alienfile alienfile is a recipe used by Aliens during the build process. alienfile, like cpanfile is essentially Perl source. It is already in use by a few Alien developers aside from myself. It would be helpful, and I think not harmful to get the same syntax highlighting as cpanfile. --- lib/MetaCPAN/Web/Controller/Source.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MetaCPAN/Web/Controller/Source.pm b/lib/MetaCPAN/Web/Controller/Source.pm index 719ab7fc8c..e1a99c5ea3 100644 --- a/lib/MetaCPAN/Web/Controller/Source.pm +++ b/lib/MetaCPAN/Web/Controller/Source.pm @@ -93,7 +93,7 @@ sub detect_filetype { # No separate pod brush as of 2011-08-04. return 'perl' if /\. ( p[ml] | psgi | pod ) $/ix; - return 'perl' if /^ cpanfile $/ix; + return 'perl' if /^ (cpan|alien)file $/ix; return 'yaml' if /\. ya?ml $/ix;