mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XEND] Another attempt at fixing escaping logic in SXP
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
d3602e826b
commit
5559c46194
1 file changed
+2
-1
@@ -267,12 +267,13 @@ class Parser:
|
||||
elif c == 'x':
|
||||
self.state.fn = self.state_hex
|
||||
self.state.val = 0
|
||||
elif c == '0':
|
||||
elif c in string.octdigits:
|
||||
self.state.fn = self.state_octal
|
||||
self.state.val = 0
|
||||
self.input_char(c)
|
||||
else:
|
||||
# ignore escape if it doesn't match anything we know
|
||||
self.state.parent.buf += '\\'
|
||||
self.pop_state()
|
||||
|
||||
def state_octal(self, c):
|
||||
|
||||