Commits

Georg Brandl committed b839f47 Merge

Merged in skleinfeld/pygments-main (pull request #297)

Adding support for underscores in Java integers.

  • Participants
  • Parent commits a022ac4, 4da5609

Comments (0)

Files changed (1)

pygments/lexers/jvm.py

             (r'[~\^\*!%&\[\]\(\)\{\}<>\|+=:;,./?-]', Operator),
             (r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
             (r'0x[0-9a-fA-F]+', Number.Hex),
-            (r'[0-9]+L?', Number.Integer),
+            (r'[0-9]+(_+[0-9]+)*L?', Number.Integer),
             (r'\n', Text)
         ],
         'class': [