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

Commit

Permalink
Merge pull request #2 from Polymer/addparams
Browse files Browse the repository at this point in the history
Add event and method params
  • Loading branch information
Scott J. Miles committed Jul 31, 2014
2 parents 08005c1 + 47b8eda commit bdf4cc8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions context-free-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@
case 'type':
subCurrent[pragma] = content;
break;

case 'param':
var eventParmsRe = /\{(.+)\}\s+(\w+[.\w+]+)\s+(.*)$/;

var params = content.match(eventParmsRe);
if (params) {
var subEventObj = {
type: params[1],
name: params[2],
description: params[3]
};
makePragma(subCurrent, pragma + 's', subEventObj);
}

break;

// everything else
default:
Expand Down

0 comments on commit bdf4cc8

Please sign in to comment.