summaryrefslogtreecommitdiffstats
path: root/macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-28 23:07:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-28 23:07:04 +0000
commit308c02a7b450dc85799bda674cb5adb9f001084f (patch)
tree6eb3728f6998687cbfb88d5b461bacc12e16db54 /macro.c
parent8152d04e0f0a42a8b75100cc7b3b8b46497d046f (diff)
downloadmandoc-308c02a7b450dc85799bda674cb5adb9f001084f.tar.gz
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/macro.c b/macro.c
index 495ff4f5..ada5eedf 100644
--- a/macro.c
+++ b/macro.c
@@ -154,7 +154,9 @@ append_scoped(struct mdoc *mdoc, int tok, int pos,
case (MDOC_Bd):
assert(mdoc->last);
- for (node = mdoc->last->parent; node; node = node->parent) {
+ node = mdoc->last->parent;
+ /* LINTED */
+ for ( ; node; node = node->parent) {
if (node->type != MDOC_BLOCK)
continue;
if (node->data.block.tok != MDOC_Bd)
@@ -791,6 +793,11 @@ again:
}
+/*
+ * Partial-line scope is identical to line scope (macro_scoped_line())
+ * except that trailing punctuation is appended to the BLOCK, instead of
+ * contained within the HEAD.
+ */
int
macro_scoped_pline(MACRO_PROT_ARGS)
{
@@ -803,6 +810,10 @@ macro_scoped_pline(MACRO_PROT_ARGS)
/* Token pre-processing. */
switch (tok) {
+ case (MDOC_Ql):
+ if ( ! mdoc_warn(mdoc, tok, ppos, WARN_COMPAT_TROFF))
+ return(0);
+ break;
default:
break;
}