Skip to content

Commit

Permalink
wmlindent: don't indent if #endarg is on the same line
Browse files Browse the repository at this point in the history
this might change behaviour of the arg value
  • Loading branch information
gfgtdf committed Oct 19, 2020
1 parent d61747b commit ae9b533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/tools/wmlindent
Expand Up @@ -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):
Expand Down

0 comments on commit ae9b533

Please sign in to comment.