1. Chris Wanstrath
  2. pygments-main

Commits

thatch  committed 7e582d7

Fix #400 (perl lexer mishighlights $x=shift)

  • Participants
  • Parent commits d9694a9
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

View file
  • Ignore whitespace
         ],
         'root': [
             (r'\#.*?$', Comment.Single),
-            (r'=[a-zA-Z0-9]+\s+.*?\n=cut', Comment.Multiline),
+            (r'^=[a-zA-Z0-9]+\s+.*?\n=cut', Comment.Multiline),
             (r'(case|continue|do|else|elsif|for|foreach|if|last|my|'
              r'next|our|redo|reset|then|unless|until|while|use|'
              r'print|new|BEGIN|END|return)\b', Keyword),