summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-01-22 22:51:05 +0100
committergbrandl <devnull@localhost>2007-01-22 22:51:05 +0100
commitd912ffe8ce404f47ec872f0af746e279338642b9 (patch)
tree51b788b03324898b18f0abbe3d80e15fead1039b
parenta00e3ff778ec6c0c83503d492381a8ef00782e89 (diff)
downloadpygments-d912ffe8ce404f47ec872f0af746e279338642b9.tar.gz
[svn] Fix line continuation in Python strings.
-rw-r--r--pygments/lexers/agile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index fa702f7a..c1998650 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -116,7 +116,7 @@ class PythonLexer(RegexLexer):
(r'[a-zA-Z_.][a-zA-Z0-9_.]*', Name.Namespace),
],
'stringescape': [
- (r'\\([\\abfnrtv"\']|N{.*?}|u[a-fA-F0-9]{4}|'
+ (r'\\([\\abfnrtv"\']|\n|N{.*?}|u[a-fA-F0-9]{4}|'
r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape)
],
'strings': [
@@ -134,12 +134,12 @@ class PythonLexer(RegexLexer):
],
'dqs': [
(r'"', String, '#pop'),
- (r'\\\\|\\"', String.Escape), # included here again for raw strings
+ (r'\\\\|\\"|\\\n', String.Escape), # included here again for raw strings
include('strings')
],
'sqs': [
(r"'", String, '#pop'),
- (r"\\\\|\\'", String.Escape), # included here again for raw strings
+ (r"\\\\|\\'|\\\n", String.Escape), # included here again for raw strings
include('strings')
],
'tdqs': [