Commits

Rob Hoelz  committed 02e1b88

Perl 5: Accept 'our' as a Perl 5 declarator

  • Participants
  • Parent commits 0cca78d

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

     def analyse_text(text):
         if shebang_matches(text, r'perl'):
             return True
-        if re.search('my\s+[$@%(]', text):
+        if re.search('(?:my|our)\s+[$@%(]', text):
             return 0.9