diff options
author | Anteru <bitbucket@ca.sh13.net> | 2018-11-27 20:01:27 +0000 |
---|---|---|
committer | Anteru <bitbucket@ca.sh13.net> | 2018-11-27 20:01:27 +0000 |
commit | f168b91ac5c66865802ec803e72db0efa1d7bf60 (patch) | |
tree | ef3abfc44098a9d7ed7bb46bab29bb61832729cc /pygments/lexers/python.py | |
parent | 273aadb8c5e5a5272084a2f5e25a46b6ce6391c1 (diff) | |
parent | d8cba3996df84a0c89f3293270a15c57763b9a52 (diff) | |
download | pygments-git-f168b91ac5c66865802ec803e72db0efa1d7bf60.tar.gz |
Merged in kevinastone/pygments-main (pull request #720)
Added pep 515 support to the python lexer
Diffstat (limited to 'pygments/lexers/python.py')
-rw-r--r-- | pygments/lexers/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 9e861aab..212f38af 100644 --- a/pygments/lexers/python.py +++ b/pygments/lexers/python.py @@ -262,7 +262,7 @@ class Python3Lexer(RegexLexer): return [ # the old style '%s' % (...) string formatting (still valid in Py3) (r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?' - '[hlL]?[E-GXc-giorsux%]', String.Interpol), + '[hlL]?[E-GXc-giorsaux%]', String.Interpol), # the new style '{}'.format(...) string formatting (r'\{' '((\w+)((\.\w+)|(\[[^\]]+\]))*)?' # field name |