Commits

Rob Hoelz committed 5cbc6ae

Perl 6 detector: stop looking for indicators after first line of non-comment, non-whitespace, non-indicator code

  • Participants
  • Parent commits 3a3d364

Comments (0)

Files changed (1)

pygments/lexers/agile.py

             # match v6; use v6; use v6.0; use v6.0.0;
             if re.match('^\s*(?:use\s+)?v6(?:\.\d(?:\.\d)?)?;', line):
                 return True
+            break
 
         return False