aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitab72eac616b1c3c60508e746d6658673934ec9da (patch)
tree425f8b00f5857df93cc93a34df96a7df235aa9a1 /macro.c
parentf39e2b991210f1443885f9363e390ca32e234309 (diff)
downloadmandoc-ab72eac616b1c3c60508e746d6658673934ec9da.tar.gz
mandoc-ab72eac616b1c3c60508e746d6658673934ec9da.tar.zst
mandoc-ab72eac616b1c3c60508e746d6658673934ec9da.zip
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/macro.c b/macro.c
index 12dd1cc4..1b9e2f51 100644
--- a/macro.c
+++ b/macro.c
@@ -1,4 +1,4 @@
-/* $Id: macro.c,v 1.8 2008/12/28 21:25:09 kristaps Exp $ */
+/* $Id: macro.c,v 1.9 2008/12/28 23:07:04 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;
}