Make wmlindent aware of #ifndef.
This commit is contained in:
parent
a4893014ff
commit
5db1379271
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue