aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--action.c3
-rw-r--r--argv.c3
-rw-r--r--macro.c5
-rw-r--r--mdoc.c4
-rw-r--r--mdoc.h5
-rw-r--r--term.c16
-rw-r--r--validate.c3
7 files changed, 30 insertions, 9 deletions
diff --git a/action.c b/action.c
index 531a27c2..1f619552 100644
--- a/action.c
+++ b/action.c
@@ -1,4 +1,4 @@
-/* $Id: action.c,v 1.35 2009/03/08 13:01:35 kristaps Exp $ */
+/* $Id: action.c,v 1.36 2009/03/08 20:50:12 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -171,6 +171,7 @@ const struct actions mdoc_actions[MDOC_MAX] = {
{ NULL }, /* Fr */
{ NULL }, /* Ud */
{ NULL }, /* Lb */
+ { NULL }, /* Ap */
};
diff --git a/argv.c b/argv.c
index 9499bd85..1aef6a86 100644
--- a/argv.c
+++ b/argv.c
@@ -1,4 +1,4 @@
-/* $Id: argv.c,v 1.41 2009/03/08 12:46:38 kristaps Exp $ */
+/* $Id: argv.c,v 1.42 2009/03/08 20:50:12 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -207,6 +207,7 @@ static int mdoc_argflags[MDOC_MAX] = {
0, /* Fr */
0, /* Ud */
0, /* Lb */
+ 0, /* Ap */
};
diff --git a/macro.c b/macro.c
index 548bc103..265f7dbf 100644
--- a/macro.c
+++ b/macro.c
@@ -1,4 +1,4 @@
-/* $Id: macro.c,v 1.60 2009/03/08 19:32:03 kristaps Exp $ */
+/* $Id: macro.c,v 1.61 2009/03/08 20:50:12 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -181,6 +181,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ macro_obsolete, 0 }, /* Fr */
{ macro_constant, 0 }, /* Ud */
{ macro_constant, 0 }, /* Lb */
+ { macro_constant_delimited, MDOC_CALLABLE | MDOC_PARSED }, /* Ap */
};
const struct mdoc_macro * const mdoc_macros = __mdoc_macros;
@@ -1204,6 +1205,8 @@ macro_constant_delimited(MACRO_PROT_ARGS)
*/
switch (tok) {
+ case (MDOC_Ap):
+ /* FALLTHROUGH */
case (MDOC_No):
/* FALLTHROUGH */
case (MDOC_Ns):
diff --git a/mdoc.c b/mdoc.c
index c42002b6..37714409 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.55 2009/03/08 18:02:36 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.56 2009/03/08 20:50:12 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -70,7 +70,7 @@ const char *const __mdoc_macronames[MDOC_MAX] = {
"Tn", "Ux", "Xc", "Xo",
"Fo", "Fc", "Oo", "Oc",
"Bk", "Ek", "Bt", "Hf",
- "Fr", "Ud", "Lb",
+ "Fr", "Ud", "Lb", "Ap"
};
const char *const __mdoc_argnames[MDOC_ARG_MAX] = {
diff --git a/mdoc.h b/mdoc.h
index 2ba6d151..a9d96172 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.40 2009/03/08 18:02:36 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.41 2009/03/08 20:50:12 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -138,7 +138,8 @@
#define MDOC_Fr 104
#define MDOC_Ud 105
#define MDOC_Lb 106
-#define MDOC_MAX 107
+#define MDOC_Ap 107
+#define MDOC_MAX 108
/* What follows is a list of ALL possible macro arguments. */
diff --git a/term.c b/term.c
index fa8e58cc..38b44de8 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.47 2009/03/08 19:38:08 kristaps Exp $ */
+/* $Id: term.c,v 1.48 2009/03/08 20:50:12 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -130,6 +130,7 @@ DECL_PREPOST(termp_ss);
DECL_PREPOST(termp_sq);
DECL_PREPOST(termp_vt);
+DECL_PRE(termp_ap);
DECL_PRE(termp_ar);
DECL_PRE(termp_at);
DECL_PRE(termp_bf);
@@ -274,6 +275,7 @@ const struct termact __termacts[MDOC_MAX] = {
{ NULL, NULL }, /* Fr */
{ termp_ud_pre, NULL }, /* Ud */
{ termp_lb_pre, termp_lb_post }, /* Lb */
+ { termp_ap_pre, NULL }, /* Lb */
};
const struct termact *termacts = __termacts;
@@ -1700,6 +1702,18 @@ termp_sm_pre(DECL_ARGS)
/* ARGSUSED */
static int
+termp_ap_pre(DECL_ARGS)
+{
+
+ p->flags |= TERMP_NOSPACE;
+ word(p, "\\(aq");
+ p->flags |= TERMP_NOSPACE;
+ return(1);
+}
+
+
+/* ARGSUSED */
+static int
termp__t_pre(DECL_ARGS)
{
diff --git a/validate.c b/validate.c
index 3f8c32cc..1799264f 100644
--- a/validate.c
+++ b/validate.c
@@ -1,4 +1,4 @@
-/* $Id: validate.c,v 1.74 2009/03/08 18:02:36 kristaps Exp $ */
+/* $Id: validate.c,v 1.75 2009/03/08 20:50:12 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -298,6 +298,7 @@ const struct valids mdoc_valids[MDOC_MAX] = {
{ NULL, NULL }, /* Fr */
{ NULL, posts_notext }, /* Ud */
{ pres_lb, posts_lb }, /* Lb */
+ { NULL, NULL }, /* Lb */
};