Commits

Steven Collins committed 452eb75

Changed to old-style % operator formatting for 2.4 compatibility, as requested

  • Participants
  • Parent commits c5d44dc

Comments (0)

Files changed (1)

File pygments/lexers/web.py

         # represents a simple terminal value
         'simplevalue': [
             (r'(true|false|null)\b', Keyword.Constant),
-            (('{int_part!s}({frac_part!s}{exp_part!s}|'
-              '{exp_part!s}|{frac_part!s})').format(**vars()),
+            (('%(int_part)s(%(frac_part)s%(exp_part)s|'
+              '%(exp_part)s|%(frac_part)s)') % vars(),
              Number.Float),
             (int_part, Number.Integer),
             (r'"(\\\\|\\"|[^"])*"', String.Double),