Commits

Rob Hoelz  committed 3a3d364

Match use v6; lines for Perl 6 detection

  • Participants
  • Parent commits f370737

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

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