Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Support for Exposed extended attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Jan 6, 2016
1 parent fab5717 commit 8f53f36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,14 @@ parseextendedattribute(struct tok *tok)
addnode(node, parsetypepair(tok));
node->end = tok->start + tok->len;
eat(tok, ')');
} else if (!strcmp(attrname, "Exposed")) {
// Special casing Exposed since it too has a unique structure
eat(tok, '=');
eat(tok, '(');
addnode(node, parsetypepair(tok));
node->end = tok->start + tok->len;
eat(tok, ')');

} else {
if (tok->type == '=') {
lexnocomment();
Expand Down

0 comments on commit 8f53f36

Please sign in to comment.