summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>1999-10-21 13:26:48 +0000
committerSimon Tatham <anakin@pobox.com>1999-10-21 13:26:48 +0000
commit5a9505f48aeb252d1a316b3cecc0b1da9d510085 (patch)
treeec38b7bf6790884e2f12979c91127b6dfeff2547 /input.c
parent8511f4ae900f48999617bc8384e9c327673e2196 (diff)
downloadhalibut-5a9505f48aeb252d1a316b3cecc0b1da9d510085.zip
halibut-5a9505f48aeb252d1a316b3cecc0b1da9d510085.tar.gz
halibut-5a9505f48aeb252d1a316b3cecc0b1da9d510085.tar.bz2
halibut-5a9505f48aeb252d1a316b3cecc0b1da9d510085.tar.xz
Now handle \\, \{ and \} in paragraph keywords
[originally from svn r241]
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/input.c b/input.c
index d5c4685..1f40912 100644
--- a/input.c
+++ b/input.c
@@ -557,7 +557,9 @@ static void read_file(paragraph ***ret, input *in, index *idx) {
/* FIXME: there will be bugs if anyone specifies an
* empty keyword (\foo{}), so trap this case. */
while (dtor(t), t = get_token(in),
- t.type == tok_word || t.type == tok_white) {
+ t.type == tok_word ||
+ t.type == tok_white ||
+ (t.type == tok_cmd && t.cmd == c__escaped)) {
if (t.type == tok_white)
rdadd(&rs, ' ');
else