diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 16:34:59 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 16:34:59 +0000 |
commit | fb40e7adf35e6b21b0e64e170b71e1a4d2cf5351 (patch) | |
tree | 709633693c524f8f2a224e8031814f910d646925 /tokens.c | |
parent | 7ea64ffd96cef95695a6c74dbf90f76d73fa961d (diff) | |
download | mandoc-fb40e7adf35e6b21b0e64e170b71e1a4d2cf5351.tar.gz |
Character-set validation fixes.
Diffstat (limited to 'tokens.c')
-rw-r--r-- | tokens.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; } |