Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 3655402

Browse files
committed
Allow single line comment blocks.
1 parent 8a317c4 commit 3655402

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

lib/languages/clj.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
module.exports = {
55
// find document blocks between ';;;;' and ';;;;'
6-
docBlocksRegExp: /\;{4}\uffff?(.+?)\uffff(?:\s*)?;{4}/g,
6+
docBlocksRegExp: /\;{4}\uffff?(.+?)\uffff?(?:\s*)?;{4}/g,
77
// remove not needed ' ;; ' at the beginning
88
inlineRegExp: /^(\s*)?(;{2})[ ]?/gm
99
};

lib/languages/coffee.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
module.exports = {
55
// find document blocks between '###' and '###'
6-
docBlocksRegExp: /###\uffff?(.+?)\uffff(?:\s*)?###/g,
6+
docBlocksRegExp: /###\uffff?(.+?)\uffff?(?:\s*)?###/g,
77
// remove not needed tabs at the beginning
88
inlineRegExp: /^(\t*)?/gm
99
};

lib/languages/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
module.exports = {
55
// find document blocks between '#**' and '#*'
6-
docBlocksRegExp: /\/\*\*\uffff?(.+?)\uffff(?:\s*)?\*\//g,
6+
docBlocksRegExp: /\/\*\*\uffff?(.+?)\uffff?(?:\s*)?\*\//g,
77
// remove not needed ' * ' and tabs at the beginning
88
inlineRegExp: /^(\s*)?(\*)[ ]?/gm
99
};

lib/languages/erl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
module.exports = {
55
// Find document blocks between '%{' and '%}'
6-
docBlocksRegExp: /\%*\{\uffff?(.+?)\uffff(?:\s*)?\%+\}/g,
6+
docBlocksRegExp: /\%*\{\uffff?(.+?)\uffff?(?:\s*)?\%+\}/g,
77
// remove not needed ' % ' and tabs at the beginning
88
// HINT: Not sure if erlang developer use the %, but i think it should be no problem
99
inlineRegExp: /^(\s*)?(\%*)[ ]?/gm

lib/languages/pm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
module.exports = {
55
// find document blocks between '#**' and '#*'
66
// or between '=pod' and '=cut'
7-
docBlocksRegExp: /#\*\*\uffff?(.+?)\uffff(?:\s*)?#\*|=pod\uffff?(.+?)\uffff(?:\s*)?=cut/g,
7+
docBlocksRegExp: /#\*\*\uffff?(.+?)\uffff?(?:\s*)?#\*|=pod\uffff?(.+?)\uffff?(?:\s*)?=cut/g,
88
// remove not needed ' # ' and tabs at the beginning
99
inlineRegExp: /^(\s*)?(#)[ ]?/gm
1010
};

lib/languages/py.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
module.exports = {
55
// find document blocks between """ and """
6-
docBlocksRegExp: /\"\"\"\uffff?(.+?)\uffff(?:\s*)?\"\"\"/g,
6+
docBlocksRegExp: /\"\"\"\uffff?(.+?)\uffff?(?:\s*)?\"\"\"/g,
77
// remove not needed tabs at the beginning
88
inlineRegExp: /^(\t*)?/gm
99
};

lib/languages/rb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
module.exports = {
55
// find document blocks between '=begin' and '=end'
6-
docBlocksRegExp: /\=begin\uffff?(.+?)\uffff(?:\s*)?\=end/g,
6+
docBlocksRegExp: /\=begin\uffff?(.+?)\uffff?(?:\s*)?\=end/g,
77
// remove not needed tabs at the beginning
88
inlineRegExp: /^(\t*)?/gm
99
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apidoc-core",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Core parser library to generate apidoc result following the apidoc-spec",
55
"author": "Peter Rottmann <[email protected]>",
66
"license": {

0 commit comments

Comments
 (0)