diff options
author | 2011-07-21 10:24:35 +0000 | |
---|---|---|
committer | 2011-07-21 10:24:35 +0000 | |
commit | fee8aca887653490f8c052e474d2a620140e741d (patch) | |
tree | e70cabf49ec8c391686a906b8b1ee2c861acb251 /roff.c | |
parent | 06de568c21235414d9aeaf92aef7127950caa2bf (diff) | |
download | mandoc-fee8aca887653490f8c052e474d2a620140e741d.tar.gz mandoc-fee8aca887653490f8c052e474d2a620140e741d.tar.zst mandoc-fee8aca887653490f8c052e474d2a620140e741d.zip |
Finish the eqn syntactic parser. This correctly parses terms and does
the proper `define' dance, which amounts to pure word-replace (you can,
say, define `foo' as `define' then define `define' as something else).
eqn.c is now ready for some semantic parsing of `box' and `eqn'
productions as defined by the grammar.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.147 2011/07/18 07:46:41 kristaps Exp $ */ +/* $Id: roff.c,v 1.148 2011/07/21 10:24:35 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -583,7 +583,7 @@ roff_endparse(struct roff *r) if (r->eqn) { mandoc_msg(MANDOCERR_SCOPEEXIT, r->parse, - r->eqn->eqn.line, r->eqn->eqn.pos, NULL); + r->eqn->eqn.ln, r->eqn->eqn.pos, NULL); eqn_end(r->eqn); r->eqn = NULL; } |