summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MLKReader.m11
1 files changed, 5 insertions, 6 deletions
diff --git a/MLKReader.m b/MLKReader.m
index b1d00c3..fe216ca 100644
--- a/MLKReader.m
+++ b/MLKReader.m
@@ -132,19 +132,18 @@
[stream unreadChar:ch];
break;
}
+ else if ([readtable isInvalidConstituent:ch])
+ {
+ [[[MLKReaderError alloc] initWithStream:stream] raise];
+ }
else if ([readtable isWhitespaceCharacter:ch])
{
if (preserveWhitespace)
[stream unreadChar:ch];
break;
}
- else if ([readtable isInvalidCharacter:ch])
- {
- [[[MLKReaderError alloc] initWithStream:stream] raise];
- }
}
- // FIXME: Check the token for invalid syntax.
- return token;
+ // FIXME: Check the token for meaning.
}
@end