mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 03:13:18 +00:00
Preevent wmlindent from being confused by Shadowmaster's terminal frowney.
(Yes, this is a real description of a real bug...)
This commit is contained in:
parent
5f565e34a5
commit
c927cdc6e3
@ -95,7 +95,7 @@ def opener(str):
|
|||||||
elif (str.startswith("[") and not closer(str) and not "[/" in str):
|
elif (str.startswith("[") and not closer(str) and not "[/" in str):
|
||||||
return True
|
return True
|
||||||
# Trailing ( opens a scope to be closed by ).
|
# Trailing ( opens a scope to be closed by ).
|
||||||
elif str.endswith("(\n"):
|
elif str.endswith("(\n") and '#' not in str:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
for prefix in opener_prefixes:
|
for prefix in opener_prefixes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user