This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ebidel
Author
Contributor
|
||
type: params[1], | ||
name: params[2], | ||
description: params[3] | ||
}; | ||
makePragma(subCurrent, pragma + 's', subEventObj); | ||
} | ||
|
||
break; | ||
|
||
// everything else | ||
default: | ||
|
If the
subEventObj
isn't being used anywhere else it may be worth avoiding the assignment here and just pass it in tomakePragma
lower down directly. Mostly a style choice.