tests: Warn on the trailing backslash in the template.
This commit is contained in:
@@ -176,6 +176,9 @@ def concat_multi_lines(f):
|
|||||||
firstlineno = None
|
firstlineno = None
|
||||||
catenated = ''
|
catenated = ''
|
||||||
|
|
||||||
|
if lastline is not None:
|
||||||
|
raise RuntimeError('Trailing backslash in the end of file')
|
||||||
|
|
||||||
LINE_PATTERN = re.compile(r'''
|
LINE_PATTERN = re.compile(r'''
|
||||||
(?<=(?<!\S)@)(?P<negated>!?)
|
(?<=(?<!\S)@)(?P<negated>!?)
|
||||||
(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)
|
(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)
|
||||||
|
|||||||
Reference in New Issue
Block a user