Skip to content

Commit

Permalink
Allow single line comment blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed May 11, 2015
1 parent 8a317c4 commit 3655402
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/languages/clj.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
module.exports = {
// find document blocks between ';;;;' and ';;;;'
docBlocksRegExp: /\;{4}\uffff?(.+?)\uffff(?:\s*)?;{4}/g,
docBlocksRegExp: /\;{4}\uffff?(.+?)\uffff?(?:\s*)?;{4}/g,
// remove not needed ' ;; ' at the beginning
inlineRegExp: /^(\s*)?(;{2})[ ]?/gm
};
2 changes: 1 addition & 1 deletion lib/languages/coffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
module.exports = {
// find document blocks between '###' and '###'
docBlocksRegExp: /###\uffff?(.+?)\uffff(?:\s*)?###/g,
docBlocksRegExp: /###\uffff?(.+?)\uffff?(?:\s*)?###/g,
// remove not needed tabs at the beginning
inlineRegExp: /^(\t*)?/gm
};
2 changes: 1 addition & 1 deletion lib/languages/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
module.exports = {
// find document blocks between '#**' and '#*'
docBlocksRegExp: /\/\*\*\uffff?(.+?)\uffff(?:\s*)?\*\//g,
docBlocksRegExp: /\/\*\*\uffff?(.+?)\uffff?(?:\s*)?\*\//g,
// remove not needed ' * ' and tabs at the beginning
inlineRegExp: /^(\s*)?(\*)[ ]?/gm
};
2 changes: 1 addition & 1 deletion lib/languages/erl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
module.exports = {
// Find document blocks between '%{' and '%}'
docBlocksRegExp: /\%*\{\uffff?(.+?)\uffff(?:\s*)?\%+\}/g,
docBlocksRegExp: /\%*\{\uffff?(.+?)\uffff?(?:\s*)?\%+\}/g,
// remove not needed ' % ' and tabs at the beginning
// HINT: Not sure if erlang developer use the %, but i think it should be no problem
inlineRegExp: /^(\s*)?(\%*)[ ]?/gm
Expand Down
2 changes: 1 addition & 1 deletion lib/languages/pm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module.exports = {
// find document blocks between '#**' and '#*'
// or between '=pod' and '=cut'
docBlocksRegExp: /#\*\*\uffff?(.+?)\uffff(?:\s*)?#\*|=pod\uffff?(.+?)\uffff(?:\s*)?=cut/g,
docBlocksRegExp: /#\*\*\uffff?(.+?)\uffff?(?:\s*)?#\*|=pod\uffff?(.+?)\uffff?(?:\s*)?=cut/g,
// remove not needed ' # ' and tabs at the beginning
inlineRegExp: /^(\s*)?(#)[ ]?/gm
};
2 changes: 1 addition & 1 deletion lib/languages/py.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
module.exports = {
// find document blocks between """ and """
docBlocksRegExp: /\"\"\"\uffff?(.+?)\uffff(?:\s*)?\"\"\"/g,
docBlocksRegExp: /\"\"\"\uffff?(.+?)\uffff?(?:\s*)?\"\"\"/g,
// remove not needed tabs at the beginning
inlineRegExp: /^(\t*)?/gm
};
2 changes: 1 addition & 1 deletion lib/languages/rb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
module.exports = {
// find document blocks between '=begin' and '=end'
docBlocksRegExp: /\=begin\uffff?(.+?)\uffff(?:\s*)?\=end/g,
docBlocksRegExp: /\=begin\uffff?(.+?)\uffff?(?:\s*)?\=end/g,
// remove not needed tabs at the beginning
inlineRegExp: /^(\t*)?/gm
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apidoc-core",
"version": "0.4.0",
"version": "0.4.1",
"description": "Core parser library to generate apidoc result following the apidoc-spec",
"author": "Peter Rottmann <[email protected]>",
"license": {
Expand Down

0 comments on commit 3655402

Please sign in to comment.