[XEND] Fix backslash escaping so it ignores escapes if they don't make sense.

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
acnt2@huggins.lce.cl.cam.ac.uk committed 2006-10-05 17:29:19 +01:00
1 parent bf3932d291
commit 39c3a03dfa
1 file changed
+4 -1
+4 -1
View File
@@ -267,10 +267,13 @@ class Parser:
elif c == 'x':
self.state.fn = self.state_hex
self.state.val = 0
else:
elif c == '0':
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.pop_state()
def state_octal(self, c):
def octaldigit(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.