Fixed: Allow protocols in interface declaration

This commit is contained in:
Martin Carlberg
2013-08-12 09:40:20 +02:00
parent d38125db13
commit 7c2c2a3114
+13
View File
@@ -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 (;;) {