mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-17 12:10:42 +00:00
Fixed: Moved incorrect positioned parenthesis to handle '@required' token
This commit is contained in:
1 parent
beec0c5293
commit
0b75876283
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user