[XEND] Another attempt at fixing escaping logic in SXP

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-10-05 20:02:50 +01:00
1 parent d3602e826b
commit 5559c46194
1 file changed
+2 -1
+2 -1
View File
@@ -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):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.