summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/roff.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2023-10-24 20:30:50 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2023-10-24 20:30:50 +0000
commitafc3f1bdff6d20a747b4ea43b28ae2ecea95f736 (patch)
tree33cb82bff127143cce794e57da26e4ea56f91b5b /usr.bin/mandoc/roff.h
parent2fb32bc9601f9f5e39f1107644fdcf6ba1396499 (diff)
Implement the man(7) .MR macro, a 2023 GNU extension.
The syntax and semantics is almost identical to mdoc(7) .Xr. This will be needed for reading the groff manual pages once our port will be updated to 1.23, and the Linux Manual Pages Project is also determined to start using it sooner or later. I did not advocate for this new macro, but since we want to remain able to read all manual pages found in the wild, there is little choice but to support it. At least it is easy to do, they basically copied .Xr.
Diffstat (limited to 'usr.bin/mandoc/roff.h')
-rw-r--r--usr.bin/mandoc/roff.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/roff.h b/usr.bin/mandoc/roff.h
index e04ced7c622..f6ebfe9d74f 100644
--- a/usr.bin/mandoc/roff.h
+++ b/usr.bin/mandoc/roff.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff.h,v 1.57 2022/04/30 15:08:56 schwarze Exp $ */
+/* $OpenBSD: roff.h,v 1.58 2023/10/24 20:30:49 schwarze Exp $ */
/*
* Copyright (c) 2013-2015,2017-2020,2022 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -476,6 +476,7 @@ enum roff_tok {
MAN_UE,
MAN_MT,
MAN_ME,
+ MAN_MR,
MAN_MAX /* End of man(7) macros. */
};