Fixed: Moved incorrect positioned parenthesis to handle '@required' token

This commit is contained in:
Martin Carlberg committed 2013-08-12 22:44:35 +02:00
1 parent beec0c5293
commit 0b75876283
1 file changed
+1 -1
+1 -1
View File
@@ -2224,7 +2224,7 @@ var preIfLevel = 0;
if (tokType === _eof) raise(tokPos, "Expected '@end' after '@protocol'");
if (eat(_required)) continue;
if (eat(_optional)) {
while(!eat(_required && tokType !== _end)) {
while(!eat(_required) && tokType !== _end) {
(node.optional || (node.optional = [])).push(parseProtocolClassElement());
}
} else {