diff options
author | Sanders Kleinfeld <sanders@oreilly.com> | 2014-03-13 15:22:26 -0400 |
---|---|---|
committer | Sanders Kleinfeld <sanders@oreilly.com> | 2014-03-13 15:22:26 -0400 |
commit | 6a8fa02138597bd93a6b7cdbd7a175743ea9f7c4 (patch) | |
tree | 1146ab4e4d2411b0495ada68ddeed08353c9125b /pygments/lexers/jvm.py | |
parent | 87cf3e1a72b8b0c031afbff4f8effd9661bef8a3 (diff) | |
download | pygments-6a8fa02138597bd93a6b7cdbd7a175743ea9f7c4.tar.gz |
Adding support for underscores in Java integers.
Diffstat (limited to 'pygments/lexers/jvm.py')
-rw-r--r-- | pygments/lexers/jvm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index 5c535142..9a500ee8 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -66,7 +66,7 @@ class JavaLexer(RegexLexer): (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]|_(?=_*[0-9]))*L?', Number.Integer), (r'\n', Text) ], 'class': [ |