summaryrefslogtreecommitdiffstats
path: root/tokens.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 16:34:59 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 16:34:59 +0000
commitfb40e7adf35e6b21b0e64e170b71e1a4d2cf5351 (patch)
tree709633693c524f8f2a224e8031814f910d646925 /tokens.c
parent7ea64ffd96cef95695a6c74dbf90f76d73fa961d (diff)
downloadmandoc-fb40e7adf35e6b21b0e64e170b71e1a4d2cf5351.tar.gz
Character-set validation fixes.
Diffstat (limited to 'tokens.c')
-rw-r--r--tokens.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tokens.c b/tokens.c
index 07cdb671..10d35153 100644
--- a/tokens.c
+++ b/tokens.c
@@ -88,7 +88,12 @@ rofftok_predef(const char *buf)
if ('(' == *buf)
return(rofftok_defined(++buf));
- /* TODO */
+ switch (*buf) {
+ case ('q'):
+ return(ROFFTok_Quote);
+ default:
+ break;
+ }
return(-1);
}
@@ -173,6 +178,8 @@ rofftok_scan(const char *buf)
return(ROFFTok_Hyphen);
case ('*'):
return(rofftok_predef(++buf));
+ case ('\\'):
+ return(ROFFTok_MAX);
default:
break;
}