Make wmlindent aware of #ifndef.

This commit is contained in:
Eric S. Raymond 2007-11-15 13:04:02 +00:00
parent a4893014ff
commit 5db1379271

View file

@ -49,7 +49,7 @@ from wesnoth import wmltools
def is_directive(str):
"Identify things that shouldn't be indented."
for prefix in ("#ifdef", "#else", "#endif", "#define", "#enddef"):
for prefix in ("#ifdef", "#ifndef", "#else", "#endif", "#define", "#enddef"):
if str.startswith(prefix):
return True
return False