diff --git a/Objective-J/acorn.js b/Objective-J/acorn.js index 6bf3a54a8..9724bf05d 100644 --- a/Objective-J/acorn.js +++ b/Objective-J/acorn.js @@ -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 (;;) {