summaryrefslogtreecommitdiffstats
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
commitd98b3838b2d49efc6220b1dc7bdb995e37cd4d10 (patch)
tree78b6d8a9ac3e4bf00688322b73cc0728f1ee1fa1 /mandoc.h
parent5bbaf34f67268b1270c7dd46448c7cf7556805f8 (diff)
downloadmandoc-d98b3838b2d49efc6220b1dc7bdb995e37cd4d10.tar.gz
Add support for markers. These decorate the last box: see eqn.7.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index eecaeefd..eabbf58b 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -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 {