Skip to content

Commit

Permalink
Add perl comment-style.
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed Jul 9, 2014
1 parent 40bf06e commit 7e24895
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ Parser.prototype._findBlocks = function()
inlineRegExp = /^(\t+)?[ ]?/gm;
break;

case ".pm":
// Find document blocks between "#**" and "#*"
docBlocksRegExp = /#\*\*\uffff?(.+?)#\*/g;
// Remove not needed " # " and " " (tabs) at the beginning
inlineRegExp = /^(\s+)?(#)[ ]?/gm;
break;
case ".pm":
// Find document blocks between "#**" and "#*"
docBlocksRegExp = /#\*\*\uffff?(.+?)#\*/g;
// Remove not needed " # " and " " (tabs) at the beginning
inlineRegExp = /^(\s+)?(#)[ ]?/gm;
break;

default:
// Find document blocks between "/**" and "*/"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apidoc",
"version": "0.5.2",
"version": "0.5.3",
"description": "RESTful web API Documentation Generator",
"author": "Peter Rottmann <[email protected]>",
"preferGlobal": true,
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/example/language.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @apiGroup Language
# @apiVersion 0.4.0
# @apiDescription Test for Perl Comment-Syntax.
#**
#*

#**
# @api {get} /language/perl/indented1 Perl indented 1
Expand All @@ -19,7 +19,7 @@
# Line 4 indented (with tab at beginning).
# Line 5 indented.
# This is example line 6.
#**
#*

#**
@api {get} /language/perl/indented2 Perl indented 2
Expand All @@ -32,4 +32,4 @@ This is example line 3.
Line 4 indented (with tab at beginning).
Line 5 indented.
This is example line 6.
#**
#*

0 comments on commit 7e24895

Please sign in to comment.