diff options
author | Georg Brandl <georg@python.org> | 2017-01-17 08:24:28 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2017-01-17 08:24:28 +0100 |
commit | 36b8fb2096c234912ed0242a1c76a102d8f0fdc0 (patch) | |
tree | 8fbd159abe08f5053c733fe6b97a89f3037a561a /pygments/lexers/python.py | |
parent | e7266dc3b938f9887bd15f3ebf231afa96056ff9 (diff) | |
parent | da1cb48e95d92a49b803d4bbb0762774f123de34 (diff) | |
download | pygments-git-36b8fb2096c234912ed0242a1c76a102d8f0fdc0.tar.gz |
Merged in daisuzu/pygments-main (pull request #644)
Add map support to ProtoBufLexer
Diffstat (limited to 'pygments/lexers/python.py')
-rw-r--r-- | pygments/lexers/python.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 35635ed1..d41dd08d 100644 --- a/pygments/lexers/python.py +++ b/pygments/lexers/python.py @@ -362,6 +362,7 @@ class Python3Lexer(RegexLexer): ] tokens['numbers'] = [ (r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float), + (r'\d+[eE][+-]?[0-9]+j?', Number.Float), (r'0[oO][0-7]+', Number.Oct), (r'0[bB][01]+', Number.Bin), (r'0[xX][a-fA-F0-9]+', Number.Hex), |