Commits

Tim Hatch  committed e27397a

Minor fix to Python2 lexer for octal constants

  • Participants
  • Parent commits ddb5f34

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

         'numbers': [
             (r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),
             (r'\d+[eE][+-]?[0-9]+', Number.Float),
-            (r'0\d+', Number.Oct),
+            (r'0[0-7]+', Number.Oct),
             (r'0[xX][a-fA-F0-9]+', Number.Hex),
             (r'\d+L', Number.Integer.Long),
             (r'\d+', Number.Integer)