summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorblackbird <devnull@localhost>2006-11-14 09:51:55 +0100
committerblackbird <devnull@localhost>2006-11-14 09:51:55 +0100
commitc0002899f2319c041862e58f3caf8704d5904b74 (patch)
tree07d953da839b2b1a750660d55adb59afcc9d5625 /pygments/lexers
parent0f1450015f7d2529936c660b55be61d286359f62 (diff)
downloadpygments-c0002899f2319c041862e58f3caf8704d5904b74.tar.gz
[svn] Fixed string escaping bug in python string lexer
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/agile.py2
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)