Make the python WML parser skip comments inside strings without double quotes.
This commit is contained in:
parent
67946ba2aa
commit
a9c17ac59b
1 changed files with 3 additions and 0 deletions
|
@ -434,6 +434,9 @@ class Parser:
|
|||
values += [keep_macro]
|
||||
elif c == "\n":
|
||||
break
|
||||
elif c == "#":
|
||||
self.read_until("\n")
|
||||
break
|
||||
elif c == "+":
|
||||
value = value.rstrip() # remove whitespace before +
|
||||
self.skip_whitespace_inside_statement() # read over newline
|
||||
|
|
Loading…
Add table
Reference in a new issue