Fixed bug in wmlparser2...

...where <<>> strings were not ignored inside "" strings.
This commit is contained in:
Elias Pschernig 2012-10-04 21:37:33 +00:00
parent 7a294aa261
commit 1dc6611a02

View file

@ -284,14 +284,15 @@ class Parser:
self.temp_string += line
return
arrows = line.find('<<')
quote = line.find('"')
if arrows >= 0 and (quote < 0 or quote > arrows):
self.parse_line_without_commands(line[:arrows])
self.in_arrows = True
self.parse_line_without_commands(line[arrows + 2:])
return
if not self.in_string:
arrows = line.find('<<')
if arrows >= 0 and (quote < 0 or quote > arrows):
self.parse_line_without_commands(line[:arrows])
self.in_arrows = True
self.parse_line_without_commands(line[arrows + 2:])
return
if quote >= 0:
if self.in_string: