fix raw string escapes
authorStefan Behnel <scoder@users.berlios.de>
Tue, 12 Aug 2008 12:27:16 +0000 (14:27 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 12 Aug 2008 12:27:16 +0000 (14:27 +0200)
Cython/Compiler/Parsing.py

index 18da59b2aeac97952f774dce70d397503eb90f8a..836ab3dd4395aa033ff4f530f6bfefdf456233e1 100644 (file)
@@ -590,13 +590,11 @@ def p_string_literal(s):
             systr = s.systring
             if is_raw:
                 if systr == '\\\n':
-                    chars.append('\n')
+                    chars.append('\\\n')
                 elif systr == '\\\"':
                     chars.append('"')
                 elif systr == '\\\'':
                     chars.append("'")
-                elif systr == '\\\\':
-                    chars.append('\\')
                 else:
                     chars.append(systr)
             else: