aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:18:24 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:18:24 +0000
commita81f461489b2bf2b5e7068e28199fb91696818b5 (patch)
treef27c5d398f34a45ea9a214ddc08378b786b05239 /mandoc.h
parentc5ab7f7879cd81f9d23c71ca68bf4af0159fc64f (diff)
downloadmandoc-a81f461489b2bf2b5e7068e28199fb91696818b5.tar.gz
mandoc-a81f461489b2bf2b5e7068e28199fb91696818b5.tar.zst
mandoc-a81f461489b2bf2b5e7068e28199fb91696818b5.zip
Add support for markers. These decorate the last box: see eqn.7.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index b585ace8..fb582fcd 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.84 2011/07/21 12:30:44 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.85 2011/07/21 13:18:24 kristaps Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -285,6 +285,19 @@ enum eqn_boxt {
EQN_SUBEXPR /* nested subexpression */
};
+enum eqn_markt {
+ EQNMARK_NONE = 0,
+ EQNMARK_DOT,
+ EQNMARK_DOTDOT,
+ EQNMARK_HAT,
+ EQNMARK_TILDE,
+ EQNMARK_VEC,
+ EQNMARK_DYAD,
+ EQNMARK_BAR,
+ EQNMARK_UNDER,
+ EQNMARK__MAX
+};
+
/*
* A "box" is a parsed mathematical expression as defined by the eqn.7
* grammar.
@@ -294,6 +307,7 @@ struct eqn_box {
struct eqn_box *child; /* child node */
struct eqn_box *next; /* next in tree */
char *text; /* text (or NULL) */
+ enum eqn_markt mark; /* whether 'marked' */
};
struct eqn {