From d94d164b65258d2867245a63877ca75ec3bd471a Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Fri, 23 Jan 2015 16:36:07 +0100 Subject: [tests] Ignore comment lines when checking texinfo so that "empty" options are also reported as undocumented. --- test/CheckTexinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/CheckTexinfo.py') 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 -- cgit v1.2.3