Issue #1374 new

Perl recognized as Prolog

Kirill Rodriguez
created an issue

My perl script is mistakenly recognized as prolog:

dotnum.pl

#!/usr/bin/env perl
use feature('say'); $_=<>,$n=int sqrt sqrt -1+length
;say$n;$n*=2*$n;s/.\K(?=.)/ /sg;s/.{$n}\K(?=.)/\n/sg
;for$c('A'..'Z'){$d = (ord$c)-(ord'A')+10,s/$c/$d/g;
}s/\./0/g;print
$ pygmentize -N dotnum.pl
prolog
$ pygmentize -V
Pygments version 2.2.0, (c) 2006-2017 by Georg Brandl.

I guess I should try writing better code and the issue will go away, yet I consider it a bug.

Comments (0)

  1. Log in to comment