summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mdoclint
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2013-08-05 07:16:20 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2013-08-05 07:16:20 +0000
commitb6009e29c10e8a875fa8d5f8c0f00fe50b3ffda8 (patch)
treea096a2a0f9a1da54992197808152c2d6c33e2ef4 /regress/usr.bin/mdoclint
parent8d5cd62a18dc2b13d29426fb68305a6c5bdbac21 (diff)
Make Bq and Er optional for errors. -r1.35.
from wiz@netbsd
Diffstat (limited to 'regress/usr.bin/mdoclint')
-rw-r--r--regress/usr.bin/mdoclint/mdoclint8
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint
index 1c4fb931f89..cb70b094753 100644
--- a/regress/usr.bin/mdoclint/mdoclint
+++ b/regress/usr.bin/mdoclint/mdoclint
@@ -1,7 +1,7 @@
#!/usr/bin/perl
#
-# $OpenBSD: mdoclint,v 1.34 2013/08/05 07:09:42 jmc Exp $
-# $NetBSD: mdoclint,v 1.34 2013/07/30 18:37:56 wiz Exp $
+# $OpenBSD: mdoclint,v 1.35 2013/08/05 07:16:19 jmc Exp $
+# $NetBSD: mdoclint,v 1.35 2013/07/30 18:46:29 wiz Exp $
#
# Copyright (c) 2001-2013 Thomas Klausner
# All rights reserved.
@@ -619,8 +619,8 @@ sub process_line
/^\.Bl\s+/o and $s->{last_error_name} = "";
if ($s->{current_section_header} eq "ERRORS" and
- /^\.It\s+Bq\s+Er\s+(E[\w_]+)$/o) {
- my $current_error_name = $1;
+ /^\.It\s+(Bq\s+)?(Er\s+)?(E[\w_]+)$/o) {
+ my $current_error_name = $3;
if ($s->{last_error_name} eq $current_error_name) {
$s->warning("Duplicate item for ",