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 | 85239f21e00837e5aac77f532ea64aa9bc14ac3f (patch) | |
tree | 092d720228246797e825c5cbf73dec027da574de /pygments/lexers/python.py | |
parent | ed3bd801548a301071823a38ce6e19aa18e8215b (diff) | |
parent | da957c6a2ae6f77f92e060e926627e762d6d6de9 (diff) | |
download | pygments-85239f21e00837e5aac77f532ea64aa9bc14ac3f.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 |