Commits

Rob Hoelz  committed ef64b50

Include enum declarations in the Perl 6 detector

  • Participants
  • Parent commits aa46f04

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

             if re.match('^\s*(?:use\s+)?v6(?:\.\d(?:\.\d)?)?;', line):
                 return True
             # match class, module, role declarations
-            if re.match('^\s*(?:(?:my|our)\s+)?(?:module|class|role)', line):
+            if re.match('^\s*(?:(?:my|our)\s+)?(?:module|class|role|enum)', line):
                 return True
             break