* mdocml: Clarifying role of pre_pp (now pre_par), which was confusing me
@ 2010-11-29 13:12 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-11-29 13:12 UTC (permalink / raw)
To: source
Log Message:
-----------
Clarifying role of pre_pp (now pre_par), which was confusing me due to
its name. Added some more documentation just for clarity's sake. No
functional change.
Modified Files:
--------------
mdocml:
mdoc_validate.c
Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.123 -r1.124
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -106,7 +106,7 @@ static int pre_display(PRE_ARGS);
static int pre_dt(PRE_ARGS);
static int pre_it(PRE_ARGS);
static int pre_os(PRE_ARGS);
-static int pre_pp(PRE_ARGS);
+static int pre_par(PRE_ARGS);
static int pre_rv(PRE_ARGS);
static int pre_sh(PRE_ARGS);
static int pre_ss(PRE_ARGS);
@@ -137,8 +137,8 @@ static v_post posts_vt[] = { post_vt, N
static v_post posts_wline[] = { bwarn_ge1, herr_eq0, NULL };
static v_post posts_wtext[] = { ewarn_ge1, NULL };
static v_pre pres_an[] = { pre_an, NULL };
-static v_pre pres_bd[] = { pre_display, pre_bd, pre_pp, NULL };
-static v_pre pres_bl[] = { pre_bl, pre_pp, NULL };
+static v_pre pres_bd[] = { pre_display, pre_bd, pre_par, NULL };
+static v_pre pres_bl[] = { pre_bl, pre_par, NULL };
static v_pre pres_d1[] = { pre_display, NULL };
static v_pre pres_dd[] = { pre_dd, NULL };
static v_pre pres_dt[] = { pre_dt, NULL };
@@ -147,7 +147,7 @@ static v_pre pres_ex[] = { NULL, NULL }
static v_pre pres_fd[] = { NULL, NULL };
static v_pre pres_it[] = { pre_it, NULL };
static v_pre pres_os[] = { pre_os, NULL };
-static v_pre pres_pp[] = { pre_pp, NULL };
+static v_pre pres_pp[] = { pre_par, NULL };
static v_pre pres_rv[] = { pre_rv, NULL };
static v_pre pres_sh[] = { pre_sh, NULL };
static v_pre pres_ss[] = { pre_ss, NULL };
@@ -1622,15 +1622,17 @@ post_sh_head(POST_ARGS)
return(1);
}
-
static int
-pre_pp(PRE_ARGS)
+pre_par(PRE_ARGS)
{
if (NULL == mdoc->last)
return(1);
- /* Don't allow prior `Lp' or `Pp'. */
+ /*
+ * Don't allow prior `Lp' or `Pp' prior to a paragraph-type
+ * block: `Lp', `Pp', or non-compact `Bd' or `Bl'.
+ */
if (MDOC_Pp != mdoc->last->tok && MDOC_Lp != mdoc->last->tok)
return(1);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-29 13:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-29 13:12 mdocml: Clarifying role of pre_pp (now pre_par), which was confusing me kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).