Commits

Rob Hoelz committed aa46f04

Look for module/role/class declarations

  • Participants
  • Parent commits 5cbc6ae

Comments (0)

Files changed (1)

File 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
+            # match class, module, role declarations
+            if re.match('^\s*(?:(?:my|our)\s+)?(?:module|class|role)', line):
+                return True
             break
 
         return False