1
Fork 0

tests: Warn on the trailing backslash in the template.

This commit is contained in:
Kang Seonghoon 2015-01-18 13:23:34 +09:00
parent 39e19ccdb6
commit 2c1d1fbdf9

View file

@ -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]+)*)