diff options
author | Jon Jensen <jon@endpoint.com> | 2010-07-23 16:52:11 -0600 |
---|---|---|
committer | Jon Jensen <jon@endpoint.com> | 2010-07-23 16:52:11 -0600 |
commit | 072d0c3194c652c88f6b2857c61eadf53d5ab167 (patch) | |
tree | 868a60d4a2efae6e03c5bdcf142c7ebbda01a6bc | |
parent | c7183564a279a9a94690786727c22a9904fb660e (diff) | |
download | pygments-072d0c3194c652c88f6b2857c61eadf53d5ab167.tar.gz |
Remove Perl shebang version number match that's a no-op
I was going to update the regex to match e.g. 5.10.0 and 5.12.0, but it
would match just the word "perl" anyway, so it doesn't serve any purpose.
-rw-r--r-- | pygments/lexers/agile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index 260ab766..264983f8 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -974,7 +974,7 @@ class PerlLexer(RegexLexer): } def analyse_text(text): - if shebang_matches(text, r'perl(\d\.\d\.\d)?'): + if shebang_matches(text, r'perl'): return True if 'my $' in text: return 0.9 |