summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-27 13:10:08 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-27 13:10:08 +0000
commit5226c4fdcd61545e72ba42ed649a213a893e2411 (patch)
tree093970852bdbb48a723e18ad495619b858f8ea5e /term.c
parent1d1eaff780bcc4af2a8048cec63b5e2bedf16337 (diff)
downloadmandoc-5226c4fdcd61545e72ba42ed649a213a893e2411.tar.gz
Re-ordered ascii.in looking for dupes.
Added `vim -q' tip to manuals.7 (thanks uqs@sporlein.net). ifdef'd production of missing specials/predefines.
Diffstat (limited to 'term.c')
-rw-r--r--term.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/term.c b/term.c
index 0d052bb5..ea52fc11 100644
--- a/term.c
+++ b/term.c
@@ -391,8 +391,15 @@ do_special(struct termp *p, const char *word, size_t len)
rhs = term_a2ascii(p->symtab, word, len, &sz);
- if (NULL == rhs)
+ if (NULL == rhs) {
+#if 1
+ fputs("Unknown special character: ", stderr);
+ for (i = 0; i < (int)len; i++)
+ fputc(word[i], stderr);
+ fputc('\n', stderr);
+#endif
return;
+ }
for (i = 0; i < (int)sz; i++)
encode(p, rhs[i]);
}
@@ -407,8 +414,15 @@ do_reserved(struct termp *p, const char *word, size_t len)
rhs = term_a2res(p->symtab, word, len, &sz);
- if (NULL == rhs)
+ if (NULL == rhs) {
+#if 0
+ fputs("Unknown reserved word: ", stderr);
+ for (i = 0; i < (int)len; i++)
+ fputc(word[i], stderr);
+ fputc('\n', stderr);
+#endif
return;
+ }
for (i = 0; i < (int)sz; i++)
encode(p, rhs[i]);
}