Comparing version
{ | ||
"name": "getdocs", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "An extractor for succinct documentation comments in JavaScript code", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -87,2 +87,4 @@ # Getdocs | ||
* A string literal, enclosed by double quotes. | ||
Here are some examples of types: | ||
@@ -100,2 +102,4 @@ | ||
* An array of `CommandSpec`s or the string "schema": `union<[CommandSpec], "schema">` | ||
## Tags | ||
@@ -102,0 +106,0 @@ |
@@ -92,3 +92,3 @@ module.exports = function(string, start, loc) { | ||
} else { | ||
var name = input.match(/^[\w$]+(?:\.[\w$]+)*/) | ||
var name = input.match(/^(?:[\w$]+(?:\.[\w$]+)*|"(?:[^"]|\.)*")/) | ||
if (!name) input.error("Unexpected syntax: " + input.str.slice(input.pos, input.pos + 5)) | ||
@@ -95,0 +95,0 @@ type.type = name[0] |
47595
3.37%45
4.65%1576
4.79%192
2.13%