Try to do some more ill-formedness detection in wmllint.
This commit is contained in:
parent
62f8addbe8
commit
32f5547ba6
1 changed files with 2 additions and 0 deletions
|
@ -422,6 +422,8 @@ def validate_stack(stack, file, lineno):
|
|||
name_in_attack = False
|
||||
elif len(stack) >= 2 and stack[-2] == 'attack' and stack[1] == 'name=':
|
||||
name_in_attack = True
|
||||
if stack[-1] == "sound=" and stack[-2] == "animation":
|
||||
print >>sys.stderr, '"%s", line %d: [amimation] with sound=' % (filename, lineno)
|
||||
|
||||
def validate_on_pop(tagstack, closer, file, lineno):
|
||||
"Check for 'must contain' predication"
|
||||
|
|
Loading…
Add table
Reference in a new issue