make wmliterator aware of #undef
This commit is contained in:
parent
2561f5b30c
commit
a329f4d8ec
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ def isDirective(elem):
|
|||
"Identify things that shouldn't be indented."
|
||||
if isinstance(elem, WmlIterator):
|
||||
elem = elem.element
|
||||
for prefix in ("#ifdef", "#ifndef", "#else", "#endif", "#define", "#enddef"):
|
||||
for prefix in ("#ifdef", "#ifndef", "#else", "#endif", "#define", "#enddef", "#undef"):
|
||||
if elem.startswith(prefix):
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue