tests: Warn on the trailing backslash in the template.
This commit is contained in:
parent
39e19ccdb6
commit
2c1d1fbdf9
1 changed files with 3 additions and 0 deletions
|
@ -176,6 +176,9 @@ def concat_multi_lines(f):
|
|||
firstlineno = None
|
||||
catenated = ''
|
||||
|
||||
if lastline is not None:
|
||||
raise RuntimeError('Trailing backslash in the end of file')
|
||||
|
||||
LINE_PATTERN = re.compile(r'''
|
||||
(?<=(?<!\S)@)(?P<negated>!?)
|
||||
(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue