aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-02-06 20:36:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-02-06 20:36:36 +0000
commit91ab27befd54e154790aa66b308e8be09659b580 (patch)
tree24cae421e50218e0c183605b729798a0146b75f0 /main.c
parent1a6d2f41dc5d79b1f83a510dbb34a2ac3357a651 (diff)
downloadmandoc-91ab27befd54e154790aa66b308e8be09659b580.tar.gz
mandoc-91ab27befd54e154790aa66b308e8be09659b580.tar.zst
mandoc-91ab27befd54e154790aa66b308e8be09659b580.zip
Add initial EQN support to mandoc. This parses, then throws away, data
between EQ and EN roff blocks. EQN is different from TBL in that data after .EQ is unilaterally considered an equation until an .EN. Thus, there's no need to jump through hoops in having table spans and so on. This is ONLY the parse code framework in libroff. EQN is not yet passed into the backends.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5896d5ff..2daea890 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.142 2011/02/02 21:40:45 kristaps Exp $ */
+/* $Id: main.c,v 1.143 2011/02/06 20:36:36 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -863,6 +863,8 @@ rerun:
else
mdoc_addspan(curp->mdoc, span);
}
+ } else if (ROFF_EQN == rr) {
+ assert(curp->man || curp->mdoc);
} else if (curp->man || curp->mdoc) {
rc = curp->man ?
man_parseln(curp->man,