mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 19:17:07 +00:00
Fixed: Handle '@required' before any method declarations
This commit is contained in:
1 parent
672ed6ed0c
commit
beec0c5293
1 file changed
+1
@@ -2222,6 +2222,7 @@ var preIfLevel = 0;
|
||||
}
|
||||
while(!eat(_end)) {
|
||||
if (tokType === _eof) raise(tokPos, "Expected '@end' after '@protocol'");
|
||||
if (eat(_required)) continue;
|
||||
if (eat(_optional)) {
|
||||
while(!eat(_required && tokType !== _end)) {
|
||||
(node.optional || (node.optional = [])).push(parseProtocolClassElement());
|
||||
|
||||
Reference in new issue
Block a user