diff options
author | Georg Brandl <georg@python.org> | 2014-01-09 18:15:41 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-09 18:15:41 +0100 |
commit | c74fdb8a30a37a2709265da21a3e48fff531ae36 (patch) | |
tree | a75e6e78ece2f73414eddc0a6c96b21f3f489004 /pygments/lexers/agile.py | |
parent | 4b4bde7c660d5a2f51156c25836b504aa5ab71bf (diff) | |
download | pygments-c74fdb8a30a37a2709265da21a3e48fff531ae36.tar.gz |
perl6: disable analyse_text for now, the lexer seems to like to loop sometimes
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r-- | pygments/lexers/agile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index 8f596cb9..2cd6477a 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -1924,6 +1924,7 @@ class DgLexer(RegexLexer): ], } + class Perl6Lexer(ExtendedRegexLexer): """ For `Perl 6 <http://www.perl6.org>`_ source code. @@ -2243,6 +2244,9 @@ class Perl6Lexer(ExtendedRegexLexer): } def analyse_text(text): + # disabled for now; the lexer is not bug-free and will loop sometimes, + # so let's be sure to use it only for "real" Perl 6 code. + return False def strip_pod(lines): in_pod = False stripped_lines = [] |