summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-24 14:38:30 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-24 14:38:30 +0200
commit3738502a328aa4719b868862cbb0dba977359c36 (patch)
tree70fc9252c867aa23909c87acaca92ddd999623f1
parent26fa88efed6adff0ef5c79b918514cd5c704c84a (diff)
Reader: When reading a close-paren, remove it from the stream before continuing.
-rw-r--r--MLKParenReader.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/MLKParenReader.m b/MLKParenReader.m
index 6bb6ba9..9287ce9 100644
--- a/MLKParenReader.m
+++ b/MLKParenReader.m
@@ -78,6 +78,8 @@ static unichar slurpWhitespaceAndPeek (MLKStream *stream, MLKReadtable *readtabl
tail = [tail cdr];
}
}
+
+ [stream readChar];
return [NSArray arrayWithObject:(cons ? (id)cons : (id)[NSNull null])];
}