Make wmlparser ignore lua strings for now.

This commit is contained in:
Alexander van Gessel 2009-06-03 14:07:31 +01:00
parent 5c15449cc1
commit 42fd32774f

View file

@ -534,8 +534,14 @@ class Parser:
spaces = ""
filename = "(None)"
line = -1
got_lua = False
while 1:
if c == "{":
if got_lua:
if c == ">" and self.peek_next() == ">":
got_lua = False
elif got_assign and c == "<" and self.peek_next() == "<":
got_lua = True
elif c == "{":
keep_macro = self.parse_macro()
if keep_macro:
if self.no_macros: