wmlindent: don't indent if #endarg is on the same line

this might change behaviour of the arg value
This commit is contained in:
gfgtdf 2020-10-19 18:05:43 +02:00
parent d61747bec4
commit ae9b533925

View file

@ -69,6 +69,7 @@ opener_prefixes = ["{FOREACH "]
def is_directive(str):
"Identify things that shouldn't be indented."
if "#endarg" in str: return True
return str.startswith(("#ifdef", "#ifndef", "#ifhave", "#ifnhave", "#ifver", "#ifnver", "#else", "#endif", "#define", "#enddef", "#undef", "#arg", "#endarg"))
def closer(str):