diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-08-05 07:16:20 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-08-05 07:16:20 +0000 |
commit | b6009e29c10e8a875fa8d5f8c0f00fe50b3ffda8 (patch) | |
tree | a096a2a0f9a1da54992197808152c2d6c33e2ef4 /regress/usr.bin/mdoclint | |
parent | 8d5cd62a18dc2b13d29426fb68305a6c5bdbac21 (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/mdoclint | 8 |
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 ", |