diff options
Diffstat (limited to 'src/roff/troff/token.h')
-rw-r--r-- | src/roff/troff/token.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/roff/troff/token.h b/src/roff/troff/token.h index f6707f2a..0bcb72c7 100644 --- a/src/roff/troff/token.h +++ b/src/roff/troff/token.h @@ -1,5 +1,5 @@ // -*- C++ -*- -/* Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc. +/* Copyright (C) 1989, 1990, 1991, 1992, 2000 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) This file is part of groff. @@ -50,6 +50,7 @@ class token { TOKEN_REQUEST, TOKEN_RIGHT_BRACE, TOKEN_SPACE, // ` ' -- ordinary space + TOKEN_STRETCHABLE_SPACE, // \~ TOKEN_SPECIAL, // a special character -- \' \` \- \(xx TOKEN_SPREAD, // \p -- break and spread output line TOKEN_TAB, // tab @@ -66,7 +67,8 @@ public: void skip(); int eof(); int nspaces(); // 1 if space, 2 if double space, 0 otherwise - int space(); // is it a space or double space? + int space(); // is the current token a space? + int stretchable_space(); // is the current token a stretchable space? int white_space(); // is the current token space or tab? int special(); // is the current token a special character? int newline(); // is the current token a newline? @@ -125,6 +127,11 @@ inline int token::space() return type == TOKEN_SPACE; } +inline int token::stretchable_space() +{ + return type == TOKEN_STRETCHABLE_SPACE; +} + inline int token::special() { return type == TOKEN_SPECIAL; |