Make the python WML parser skip comments inside strings without double quotes.

This commit is contained in:
Elias Pschernig 2007-12-08 16:08:12 +00:00
parent 67946ba2aa
commit a9c17ac59b

View file

@ -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