Commits

pyos  committed 296bcef

Reorder number-related regex.

  • Participants
  • Parent commits e834dac

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

             (r'0[bB][01]+', Number.Bin),
             (r'0[oO][0-7]+', Number.Oct),
             (r'0[xX][\da-fA-F]+', Number.Hex),
-            (r'[+-]?\d+', Number.Integer),
-            (r'[+-]?\d+[eE][+-]?\d+', Number.Float),
-            (r'[+-]?\d+\.\d+([eE][+-]?\d+)?', Number.Float),
-            (r'[+-]?\d+(\.\d+)?([eE][+-]?\d+)?[jJ]', Number.Complex),
+            (r'[+-]?\d+\.\d+([eE][+-]?\d+)?[jJ]?', Number.Float),
+            (r'[+-]?\d+[eE][+-]?\d+[jJ]?', Number.Float),
+            (r'[+-]?\d+[jJ]?', Number.Integer),
             #  Character/String Literals
             (r"[br]*'''", String, combined('stringescape', 'tsqs', 'string')),
             (r'[br]*"""', String, combined('stringescape', 'tdqs', 'string')),