wmllint: recognize [elseif] as a valid child of [if]
This commit is contained in:
parent
7397bcc30f
commit
a1f63dcbe3
1 changed files with 1 additions and 1 deletions
|
@ -1019,7 +1019,7 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
|
|||
if (len(ancestors) >= 1 and parent == "[if]") or \
|
||||
(len(ancestors) >= 2 and parent == "#ifdef" and ancestors[-1] == "[if]"):
|
||||
if isOpener(nav.element) and nav.element not in ("[and]",
|
||||
"[else]", "[frame]", "[have_location]",
|
||||
"[else]", "[elseif]", "[frame]", "[have_location]",
|
||||
"[have_unit]", "[not]", "[or]", "[then]",
|
||||
"[variable]") and not nav.element.endswith("_frame]") and not nav.element.startswith("[filter"):
|
||||
print errlead + 'illegal child of [if]:', nav.element
|
||||
|
|
Loading…
Add table
Reference in a new issue