summaryrefslogtreecommitdiff
path: root/test/CheckTexinfo.py
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-01-23 16:36:07 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2015-01-23 16:36:07 +0100
commitd94d164b65258d2867245a63877ca75ec3bd471a (patch)
tree5d0dd2ff22cb78ae4779e759275138086cb75143 /test/CheckTexinfo.py
parent2d45bd8c258510a3ccffccae1f72e062b7203664 (diff)
downloadfork-ledger-d94d164b65258d2867245a63877ca75ec3bd471a.tar.gz
fork-ledger-d94d164b65258d2867245a63877ca75ec3bd471a.tar.bz2
fork-ledger-d94d164b65258d2867245a63877ca75ec3bd471a.zip
[tests] Ignore comment lines when checking texinfo
so that "empty" options are also reported as undocumented.
Diffstat (limited to 'test/CheckTexinfo.py')
-rwxr-xr-xtest/CheckTexinfo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CheckTexinfo.py b/test/CheckTexinfo.py
index eedd975d..34d0e153 100755
--- a/test/CheckTexinfo.py
+++ b/test/CheckTexinfo.py
@@ -30,6 +30,7 @@ class CheckTexinfo (CheckOptions):
item_regex = re.compile('^@item --([-A-Za-z]+)')
itemx_regex = re.compile('^@itemx')
fix_regex = re.compile('FIX')
+ comment_regex = re.compile('^\s*@c')
for line in open(filename):
line = line.strip()
if state == state_normal:
@@ -50,7 +51,7 @@ class CheckTexinfo (CheckOptions):
opt_doc = str()
elif itemx_regex.match(line):
continue
- else:
+ elif not comment_regex.match(line):
opt_doc += line
return options