diff options
author | blackbird <devnull@localhost> | 2006-11-14 09:51:55 +0100 |
---|---|---|
committer | blackbird <devnull@localhost> | 2006-11-14 09:51:55 +0100 |
commit | c0002899f2319c041862e58f3caf8704d5904b74 (patch) | |
tree | 07d953da839b2b1a750660d55adb59afcc9d5625 /pygments | |
parent | 0f1450015f7d2529936c660b55be61d286359f62 (diff) | |
download | pygments-c0002899f2319c041862e58f3caf8704d5904b74.tar.gz |
[svn] Fixed string escaping bug in python string lexer
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/agile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index bad230d6..b7fb3189 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -118,7 +118,7 @@ class PythonLexer(RegexLexer): '[hlL]?[diouxXeEfFgGcrs%]', String.Interpol), (r'[^\\\'"%\n]+', String), # quotes, percents and backslashes must be parsed one at a time - ('[\'"\\\\]', String), + ('[\'"\\\\][\'"]?', String), # unhandled string formatting sign (r'%', String) # newlines are an error (use "nl" state) |