diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 09:42:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 09:42:07 +0000 |
commit | 8866a607904f2aacd85e5a2c542dbffae0d54277 (patch) | |
tree | 27858d692c4a87617da7aa73b6b44f54eec6190c | |
parent | e35bdc2019b8d686a0791cb670cd8b3ddafc6841 (diff) | |
download | mandoc-8866a607904f2aacd85e5a2c542dbffae0d54277.tar.gz |
Added %Q macro.
-rw-r--r-- | action.c | 1 | ||||
-rw-r--r-- | argv.c | 1 | ||||
-rw-r--r-- | macro.c | 1 | ||||
-rw-r--r-- | mdoc.c | 3 | ||||
-rw-r--r-- | mdoc.h | 3 | ||||
-rw-r--r-- | term.c | 1 | ||||
-rw-r--r-- | validate.c | 1 |
7 files changed, 9 insertions, 2 deletions
@@ -191,6 +191,7 @@ const struct actions mdoc_actions[MDOC_MAX] = { { NULL, NULL }, /* Es */ { NULL, NULL }, /* En */ { NULL, NULL }, /* Dx */ + { NULL, NULL }, /* %Q */ }; @@ -223,6 +223,7 @@ static int mdoc_argflags[MDOC_MAX] = { 0, /* Es */ 0, /* En */ 0, /* Dx */ + ARGS_QUOTED, /* %Q */ }; @@ -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; @@ -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] = { @@ -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. */ @@ -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; @@ -315,6 +315,7 @@ const struct valids mdoc_valids[MDOC_MAX] = { { NULL, NULL }, /* Es */ { NULL, NULL }, /* En */ { NULL, NULL }, /* Dx */ + { NULL, posts_text }, /* %Q */ }; |