Perl recognized as Prolog

Issue #1374 new
Kirill Rodriguez
created an issue

My perl script is mistakenly recognized as prolog:

#!/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;
$ pygmentize -N
$ 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