diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-04 17:48:28 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-04 17:48:28 +0000 |
commit | 5fbabdf032b370e99e8685958b6e15eb3b2ff0f7 (patch) | |
tree | 56bbeb9f07b66610d5173e36db18df3fba402155 /man_macro.c | |
parent | 90c0bcfc5ca59192e72f849591c6ec10e8048bf0 (diff) | |
download | mandoc-5fbabdf032b370e99e8685958b6e15eb3b2ff0f7.tar.gz |
Parser reorg:
Generate the first node on the roff level: .br
Fix some column numbers in diagnostic messages while here.
Diffstat (limited to 'man_macro.c')
-rw-r--r-- | man_macro.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/man_macro.c b/man_macro.c index 3adacc72..21dd3d92 100644 --- a/man_macro.c +++ b/man_macro.c @@ -61,7 +61,6 @@ const struct man_macro __man_macros[MAN_MAX - MAN_TH] = { { in_line_eoln, MAN_SCOPED | MAN_JOIN }, /* I */ { in_line_eoln, 0 }, /* IR */ { in_line_eoln, 0 }, /* RI */ - { in_line_eoln, MAN_NSCOPED }, /* br */ { in_line_eoln, MAN_NSCOPED }, /* sp */ { in_line_eoln, MAN_NSCOPED }, /* nf */ { in_line_eoln, MAN_NSCOPED }, /* fi */ @@ -328,8 +327,7 @@ in_line_eoln(MACRO_PROT_ARGS) n = man->last; for (;;) { - if (buf[*pos] != '\0' && (tok == MAN_br || - tok == MAN_fi || tok == MAN_nf)) { + if (buf[*pos] != '\0' && (tok == MAN_fi || tok == MAN_nf)) { mandoc_vmsg(MANDOCERR_ARG_SKIP, man->parse, line, *pos, "%s %s", roff_name[tok], buf + *pos); |