aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.h
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 /roff.h
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 'roff.h')
-rw-r--r--roff.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/roff.h b/roff.h
index 141a469a..baa1361f 100644
--- a/roff.h
+++ b/roff.h
@@ -1,4 +1,4 @@
-/* $Id: roff.h,v 1.22 2011/01/01 16:18:39 kristaps Exp $ */
+/* $Id: roff.h,v 1.23 2011/02/06 20:36:36 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -25,6 +25,7 @@ enum rofferr {
ROFF_SO, /* include another file */
ROFF_IGN, /* ignore current line */
ROFF_TBL, /* a table row was successfully parsed */
+ ROFF_EQN, /* an equation was successfully parsed */
ROFF_ERR /* badness: puke and stop */
};