wmllint: revert part of commit 6164804128
groggy: The ifdef_stack = [None] assignment made wmllint crash upon nested #if blocks. The following block of wml should suffice to let it crash. The inner #endif deletes the data about encountered #ifs. ... #ifver WESNOTH_VERSION >= 1.11.0 #ifhave ~add-ons/UMC_Music_Book_1/_main.cfg [binary_path] path=data/add-ons/UMC_Music_Book_1 [/binary_path] #endif #else #ifhave ~add-ons/UMC_Music/_main.cfg [binary_path] path=data/add-ons/UMC_Music [/binary_path] #endif #endif ...
This commit is contained in:
parent
8bb88030c1
commit
4bf2a5c94c
1 changed files with 1 additions and 1 deletions
|
@ -1101,7 +1101,7 @@ def global_sanity_check(filename, lines):
|
|||
ifdef_stack.append("!" + ifdef_stack[-1])
|
||||
continue
|
||||
if line.startswith("#endif"):
|
||||
ifdef_stack = [None]
|
||||
ifdef_stack.pop()
|
||||
continue
|
||||
if "[generator]" in lines[i]:
|
||||
in_generator = True
|
||||
|
|
Loading…
Add table
Reference in a new issue