about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKang Seonghoon <public+git@mearie.org>2015-01-18 13:23:34 +0900
committerKang Seonghoon <public+git@mearie.org>2015-01-18 13:23:34 +0900
commit2c1d1fbdf96b4eb90fa48a3602cf869acf054d6c (patch)
treeb475577b9a69e50b229c0601a079a34bbaa9914f
parent39e19ccdb6c89703a9c88eb88a26f61ec10d31f3 (diff)
downloadrust-2c1d1fbdf96b4eb90fa48a3602cf869acf054d6c.tar.gz
rust-2c1d1fbdf96b4eb90fa48a3602cf869acf054d6c.zip
tests: Warn on the trailing backslash in the template.
-rw-r--r--src/etc/htmldocck.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py
index 25734217589..ad78e13ca25 100644
--- a/src/etc/htmldocck.py
+++ b/src/etc/htmldocck.py
@@ -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]+)*)