diff options
author | wlemb <wlemb> | 2001-01-28 09:22:22 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-01-28 09:22:22 +0000 |
commit | 16442548d3060c11774df73cfe39a17e78ec1e61 (patch) | |
tree | 84e3e37552efc9dbd69ad7dd8dd8d0ed1540f326 /src/roff/troff/token.h | |
parent | e6457331eba6bde2143d3436d270c28c4ca02680 (diff) | |
download | groff-16442548d3060c11774df73cfe39a17e78ec1e61.tar.gz |
Fixed a bug which prevented hyphenation of words which are finished
with `)'.
* src/roff/troff/token.h (token): Add enum type
`TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
* src/roff/troff/input.cc (token::next, token::description,
get_line_arg, token::add_to_node_list, token::process): Use it.
* src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
* src/roff/troff/div.cc (do_divert): Use it.
* src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
Diffstat (limited to 'src/roff/troff/token.h')
-rw-r--r-- | src/roff/troff/token.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/roff/troff/token.h b/src/roff/troff/token.h index 0bcb72c7..10c592a4 100644 --- a/src/roff/troff/token.h +++ b/src/roff/troff/token.h @@ -33,7 +33,8 @@ class token { TOKEN_BACKSPACE, TOKEN_BEGIN_TRAP, TOKEN_CHAR, // a normal printing character - TOKEN_DUMMY, + TOKEN_DUMMY, // \& + TOKEN_TRANSPARENT_DUMMY, // \) TOKEN_EMPTY, // this is the initial value TOKEN_END_TRAP, TOKEN_ESCAPE, // \e @@ -77,6 +78,7 @@ public: int backspace(); int delimiter(int warn = 0); // is it suitable for use as a delimiter? int dummy(); + int transparent_dummy(); int transparent(); int left_brace(); int right_brace(); @@ -175,6 +177,11 @@ inline int token::dummy() return type == TOKEN_DUMMY; } +inline int token::transparent_dummy() +{ + return type == TOKEN_TRANSPARENT_DUMMY; +} + inline int token::left_brace() { return type == TOKEN_LEFT_BRACE; |