Comparing version 0.4.3 to 0.4.4
0.4.4 / 2013-07-28 | ||
================== | ||
* add support for variable names containing "$". fix #102 | ||
0.4.3 / 2013-03-18 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -191,2 +191,6 @@ /*! | ||
break; | ||
case 'throws': | ||
tag.types = exports.parseTagTypes(parts.shift()); | ||
tag.description = parts.join(' '); | ||
break; | ||
default: | ||
@@ -238,3 +242,3 @@ tag.string = parts.join(' '); | ||
// function statement | ||
if (/^function (\w+) *\(/.exec(str)) { | ||
if (/^function ([\w$]+) *\(/.exec(str)) { | ||
return { | ||
@@ -246,3 +250,3 @@ type: 'function' | ||
// function expression | ||
} else if (/^var *(\w+)[ \t]*=[ \t]*function/.exec(str)) { | ||
} else if (/^var *([\w$]+)[ \t]*=[ \t]*function/.exec(str)) { | ||
return { | ||
@@ -254,3 +258,3 @@ type: 'function' | ||
// prototype method | ||
} else if (/^(\w+)\.prototype\.(\w+)[ \t]*=[ \t]*function/.exec(str)) { | ||
} else if (/^([\w$]+)\.prototype\.([\w$]+)[ \t]*=[ \t]*function/.exec(str)) { | ||
return { | ||
@@ -264,3 +268,3 @@ type: 'method' | ||
// prototype property | ||
} else if (/^(\w+)\.prototype\.(\w+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) { | ||
} else if (/^([\w$]+)\.prototype\.([\w$]+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) { | ||
return { | ||
@@ -275,3 +279,3 @@ type: 'property' | ||
// method | ||
} else if (/^([\w.]+)\.(\w+)[ \t]*=[ \t]*function/.exec(str)) { | ||
} else if (/^([\w$.]+)\.([\w$]+)[ \t]*=[ \t]*function/.exec(str)) { | ||
return { | ||
@@ -284,3 +288,3 @@ type: 'method' | ||
// property | ||
} else if (/^(\w+)\.(\w+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) { | ||
} else if (/^([\w$]+)\.([\w$]+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) { | ||
return { | ||
@@ -294,3 +298,3 @@ type: 'property' | ||
// declaration | ||
} else if (/^var +(\w+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) { | ||
} else if (/^var +([\w$]+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) { | ||
return { | ||
@@ -297,0 +301,0 @@ type: 'declaration' |
{ "name": "dox" | ||
, "description": "Markdown / JSdoc documentation generator" | ||
, "version": "0.4.3" | ||
, "version": "0.4.4" | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
@@ -5,0 +5,0 @@ , "repository": { "type": "git", "url": "git://github.com/visionmedia/dox.git" } |
21625
344