larger kludge for escaped characters
This commit is contained in:
parent
2c582fbd52
commit
00da0468e6
@ -255,8 +255,9 @@ class String(State):
|
||||
"""
|
||||
if self.escaped:
|
||||
self.escaped = False
|
||||
if char == "n":
|
||||
self.nodes.append("\n")
|
||||
simple_escapables = tuple('abfnrtv')
|
||||
if char in simple_escapables:
|
||||
self.nodes.append(eval('"\\'+char+'"'))
|
||||
return
|
||||
if char == "\\":
|
||||
self.nodes.append("\\")
|
||||
|
Loading…
x
Reference in New Issue
Block a user