Make wmlparser ignore lua strings for now.
This commit is contained in:
parent
5c15449cc1
commit
42fd32774f
1 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue