Detect campaigns without IDs.

This commit is contained in:
Eric S. Raymond 2008-04-14 15:39:35 +00:00
parent 4e7e09a5ca
commit 504e37dc04

View file

@ -548,6 +548,9 @@ def validate_on_pop(tagstack, closer, filename, lineno):
if "units" not in filename and closer == "unit" and "race" in attributes:
print '"%s", line %d: [unit] needs hand fixup to [unit_type]' % \
(filename, lineno)
if closer == "campaign" and "id" not in attributes:
print '"%s", line %d: campaign has no ID' % \
(filename, lineno)
def within(tag):
"Did the specified tag lead one of our enclosing contexts?"