![]() ![]() | ![]() |
File: [cvsweb.bsd.lv] / mandoc / regress / mdoc / Sy / punct.in (download)
Revision 1.2, Tue May 30 16:22:33 2017 UTC (8 years, 3 months ago) by schwarze
Macro argument quoting does not prevent recognition of punctuation and of called macros. This bug affects almost all macros, and fixing it simplifies the code. It is amazing that the bogus ARGS_QWORD feature got implemented in the first place, and then carrier along for more than eight years without anybody ever noticing that it was pointless. Reported by Leah Neukirchen <leah at vuxu dot org>, found on Void Linux. |
.Dd November 17, 2014 .Dt SY-PUNCT 1 .Os OpenBSD .Sh NAME .Nm Sy-punct .Nd punctuation following a symbolic macro .Sh DESCRIPTION Leading punctuation: .Sy ( b .Sy "[" b .Sy | b .Sy . b .Sy , b .Sy ; b .Sy : b .Sy ? b .Sy ! b .Sy ) b .Sy ] b .Pp Trailing punctuation: .Sy a ( .Sy a [ .Sy a | .Sy a . .Sy a , .Sy a ; .Sy a : .Sy a ? .Sy a ! .Sy a ")" .Sy a ] .Pp Middle punctuation: .Sy a ( b .Sy a [ b .Sy a "|" b .Sy a . b .Sy a , b .Sy a ; b .Sy a : b .Sy a ? b .Sy a ! b .Sy a ) b .Sy a ] b .Pp Isolated punctuation: .Sy a Sy ( Sy b .Sy a Sy [ Sy b .Sy a Sy | Sy b .Sy a Sy . Sy b .Sy a Sy , Sy b .Sy a Sy ; Sy b .Sy a Sy : Sy b .Sy a Sy ? Sy b .Sy a Sy ! Sy b .Sy a Sy ) Sy b .Sy a Sy ] Sy b .Pp Isolated trailing punctuation: .Sy a Sy ( .Sy a Sy [ .Sy a Sy | .Sy a Sy . .Sy a Sy , .Sy a Sy ; .Sy a Sy : .Sy a Sy ? .Sy a Sy ! .Sy a Sy ) .Sy a Sy ] .Pp Multiple isolated punctuation: .Sy a Sy ( [ Sy b .Sy a Sy ) ] Sy b .Pp Multiple punctuation: .Sy [ ( arg ) ] . .Pp Quoted: .Sy "a . b Nm" "Em" italic .Sy ". b Nm" .Sy "."