summaryrefslogtreecommitdiff
path: root/MLKReader.m
diff options
context:
space:
mode:
Diffstat (limited to 'MLKReader.m')
-rw-r--r--MLKReader.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/MLKReader.m b/MLKReader.m
index 5fc8d24..9664784 100644
--- a/MLKReader.m
+++ b/MLKReader.m
@@ -25,6 +25,7 @@
#import "MLKEnvironment.h"
#import "MLKPackage.h"
#import "MLKClosure.h"
+#import "MLKStream.h"
#import <Foundation/NSArray.h>
#import <Foundation/NSString.h>
@@ -128,13 +129,13 @@
escaped = !escaped;
else if ([readtable isTerminatingMacroCharacter:ch])
{
- [stream unreadChar];
+ [stream unreadChar:ch];
break;
}
else if ([readtable isWhitespaceCharacter:ch])
{
if (preserveWhitespace)
- [stream unreadChar];
+ [stream unreadChar:ch];
break;
}
else if ([readtable isInvalidCharacter:ch])