Kaydet (Commit) 1b2004f0 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fixed error position for the backslash at the end of regex pattern.

üst b99c132b
......@@ -225,7 +225,8 @@ class Tokenizer:
try:
char += self.decoded_string[index]
except IndexError:
raise self.error("bogus escape (end of line)") from None
raise error("bogus escape (end of line)",
self.string, len(self.string) - 1) from None
self.index = index + 1
self.next = char
def match(self, char):
......
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