Commit c3d75bde authored by Stefan Behnel's avatar Stefan Behnel

fix raw string escapes

parent 55957b2e
...@@ -590,13 +590,11 @@ def p_string_literal(s): ...@@ -590,13 +590,11 @@ def p_string_literal(s):
systr = s.systring systr = s.systring
if is_raw: if is_raw:
if systr == '\\\n': if systr == '\\\n':
chars.append('\n') chars.append('\\\n')
elif systr == '\\\"': elif systr == '\\\"':
chars.append('"') chars.append('"')
elif systr == '\\\'': elif systr == '\\\'':
chars.append("'") chars.append("'")
elif systr == '\\\\':
chars.append('\\')
else: else:
chars.append(systr) chars.append(systr)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment