mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-01 22:56:17 +00:00
Fixed: Allow protocols in interface declaration
This commit is contained in:
@@ -2116,6 +2116,19 @@ var preIfLevel = 0;
|
||||
node.categoryname = parseIdent(true);
|
||||
expect(_parenR, "Expected closing ')' after category name");
|
||||
}
|
||||
if (tokVal === '<') {
|
||||
next();
|
||||
var protocols = [],
|
||||
first = true;
|
||||
node.protocols = protocols;
|
||||
while (tokVal !== '>') {
|
||||
if (!first)
|
||||
expect(_comma, "Expected ',' between protocol names");
|
||||
else first = false;
|
||||
protocols.push(parseIdent(true));
|
||||
}
|
||||
next();
|
||||
}
|
||||
if (eat(_braceL)) {
|
||||
node.ivardeclarations = [];
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user