summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--action.c1
-rw-r--r--argv.c1
-rw-r--r--macro.c1
-rw-r--r--mdoc.c3
-rw-r--r--mdoc.h3
-rw-r--r--term.c1
-rw-r--r--validate.c1
7 files changed, 9 insertions, 2 deletions
diff --git a/action.c b/action.c
index 6b98d25e..73cecd0d 100644
--- a/action.c
+++ b/action.c
@@ -191,6 +191,7 @@ const struct actions mdoc_actions[MDOC_MAX] = {
{ NULL, NULL }, /* Es */
{ NULL, NULL }, /* En */
{ NULL, NULL }, /* Dx */
+ { NULL, NULL }, /* %Q */
};
diff --git a/argv.c b/argv.c
index ec2555d3..fc65f080 100644
--- a/argv.c
+++ b/argv.c
@@ -223,6 +223,7 @@ static int mdoc_argflags[MDOC_MAX] = {
0, /* Es */
0, /* En */
0, /* Dx */
+ ARGS_QUOTED, /* %Q */
};
diff --git a/macro.c b/macro.c
index e8a60c9e..2cd2bdfe 100644
--- a/macro.c
+++ b/macro.c
@@ -198,6 +198,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ obsolete, 0 }, /* Es */
{ obsolete, 0 }, /* En */
{ in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Dx */
+ { in_line_eoln, 0 }, /* %Q */
};
const struct mdoc_macro * const mdoc_macros = __mdoc_macros;
diff --git a/mdoc.c b/mdoc.c
index 1c11de35..23f1d6a4 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -75,7 +75,8 @@ const char *const __mdoc_macronames[MDOC_MAX] = {
"Lp", "Lk", "Mt", "Brq",
/* LINTED */
"Bro", "Brc", "\%C", "Es",
- "En", "Dx"
+ /* LINTED */
+ "En", "Dx", "\%Q"
};
const char *const __mdoc_argnames[MDOC_ARG_MAX] = {
diff --git a/mdoc.h b/mdoc.h
index 56040fdb..7bcaa8e9 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -149,7 +149,8 @@
#define MDOC_Es 115
#define MDOC_En 116
#define MDOC_Dx 117
-#define MDOC_MAX 118
+#define MDOC__Q 118
+#define MDOC_MAX 119
/* What follows is a list of ALL possible macro arguments. */
diff --git a/term.c b/term.c
index 701a864a..09af2f9f 100644
--- a/term.c
+++ b/term.c
@@ -300,6 +300,7 @@ const struct termact __termacts[MDOC_MAX] = {
{ NULL, NULL }, /* Es */
{ NULL, NULL }, /* En */
{ termp_dx_pre, NULL }, /* Dx */
+ { NULL, NULL }, /* %Q */
};
const struct termact *termacts = __termacts;
diff --git a/validate.c b/validate.c
index a17350c7..7d2c0d05 100644
--- a/validate.c
+++ b/validate.c
@@ -315,6 +315,7 @@ const struct valids mdoc_valids[MDOC_MAX] = {
{ NULL, NULL }, /* Es */
{ NULL, NULL }, /* En */
{ NULL, NULL }, /* Dx */
+ { NULL, posts_text }, /* %Q */
};