From c15739d24c29854775367310f50e1f573e331a77 Mon Sep 17 00:00:00 2001 From: PurpleMyst Date: Sun, 23 Jul 2017 19:23:30 +0200 Subject: Highlight %a in Python3Lexer --- pygments/lexers/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pygments/lexers/python.py') diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 390eafe8..435dfe9c 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 -- cgit v1.2.1