Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support for known tag aliases

ref #45

- Adds support for aliases for the tags which currently work
  • Loading branch information...
commit ab8ac50d9d830af9be9df50346d340af7014df1d 1 parent fdd0107
@ErisDS ErisDS authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/docker.js
View
15 src/docker.js
@@ -657,17 +657,22 @@ Docker.prototype.parseMultiline = function(comment){
var tagType = tag.type = bits.shift();
switch(tagType){
+ case 'arg':
+ case 'argument':
case 'param':
// `@param {typename} paramname Parameter description`
if(bits[0].charAt(0) == '{') tag.types = grabType(bits).split(/ *[|,\/] */);
tag.name = bits.shift() || '';
tag.description = bits.join(' ');
+ tag.type = 'param';
break;
+ case 'returns':
case 'return':
// `@return {typename} Return description`
if(bits[0].charAt(0) == '{') tag.types = grabType(bits).split(/ *[|,\/] */);
tag.description = bits.join(' ');
+ tag.type = 'return';
break;
case 'type':
@@ -675,9 +680,19 @@ Docker.prototype.parseMultiline = function(comment){
tag.types = grabType(bits).split(/ *[|,\/] */);
break;
+ case 'access':
case 'api':
// `@api public` or `@api private` etc.
tag.visibility = bits.shift();
+ tag.type = 'api';
+ break;
+
+ case 'private':
+ case 'protected':
+ case 'public':
+ // `@public` or `@private` etc.
+ tag.visibility = tagType;
+ tag.type = 'api';
break;
case 'see':
Please sign in to comment.
Something went wrong with that request. Please try again.