diff options
author | gbrandl <devnull@localhost> | 2007-01-22 22:51:05 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-01-22 22:51:05 +0100 |
commit | d912ffe8ce404f47ec872f0af746e279338642b9 (patch) | |
tree | 51b788b03324898b18f0abbe3d80e15fead1039b | |
parent | a00e3ff778ec6c0c83503d492381a8ef00782e89 (diff) | |
download | pygments-d912ffe8ce404f47ec872f0af746e279338642b9.tar.gz |
[svn] Fix line continuation in Python strings.
-rw-r--r-- | pygments/lexers/agile.py | 6 |
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': [ |