Prevent #undef from being indented.
This commit is contained in:
parent
a3516fd4b3
commit
964e144790
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ opener_prefixes = ["{FOREACH "]
|
|||
|
||||
def is_directive(str):
|
||||
"Identify things that shouldn't be indented."
|
||||
for prefix in ("#ifdef", "#ifndef", "#else", "#endif", "#define", "#enddef"):
|
||||
for prefix in ("#ifdef", "#ifndef", "#else", "#endif", "#define", "#enddef", "#undef"):
|
||||
if str.startswith(prefix):
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue