Teach wmlscope about unit_image,

...and clean up one call to make types clearer.
This commit is contained in:
Eric S. Raymond 2010-11-24 00:50:09 +00:00
parent 87da82be3a
commit 381931b3a7
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@
message= _ "Shes... Shes beautiful."
[/message]
{UNDEAD_INTEL (Vampire Lady) (Midnight Queen) ( _ "Midnight Queen") "unit_image" 2 ({X}) ({Y})}
{UNDEAD_INTEL (Vampire Lady) "Midnight Queen" _"Midnight Queen" "unit_image" 2 ({X}) ({Y})}
# wmllint: recognize Midnight Queen
{LOYAL_UNIT 3 (Blood Bat) ({X}) ({Y})}

View file

@ -212,7 +212,7 @@ def actualtype(a):
atype = "alignment"
elif a.startswith("{") or a.endswith("}") or a.startswith("$"):
atype = None # Can't tell -- it's a macro expansion
elif re.match(image_reference, a):
elif re.match(image_reference, a) or a == "unit_image":
atype = "image"
elif re.match(r"(\*|[A-Z][a-z]+)\^([A-Z][a-z\\|/]+\Z)?", a):
atype = "terrain_code"