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):
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:
......
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