Skip to content

Commit

Permalink
Removing a-z from multiline regex to include any characters in commen…
Browse files Browse the repository at this point in the history
…ts. Fixes #24
  • Loading branch information
aaron-bond committed Jan 14, 2018
1 parent 079d61d commit deff42b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"onLanguage:r",
"onLanguage:ruby",
"onLanguage:shellscript",
"onLanguage:sql",
"onLanguage:vb"
"onLanguage:sql",
"onLanguage:vb"
],
"galleryBanner": {
"color": "#e3f4ff",
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class Parser {
// Combine custom delimiters and the rest of the comment block matcher
let commentMatchString: string = "(^)+([ \\t]*\\*[ \\t]*)(";
commentMatchString += characters.join("|");
commentMatchString += ")+([ ]*[a-z]|[:])+([^*/\\r\\n]*)";
commentMatchString += ")+([ ]*|[:])+([^*/\\r\\n]*)";

// Find rows of comments matching pattern
let regEx = /(^|[ \t])(\/\*)+([\s\S]*?)(\*\/)/gm;
Expand Down

0 comments on commit deff42b

Please sign in to comment.