@@ -124,14 +124,18 @@ export class Parser {
124124 }
125125
126126 // Combine custom delimiters and the rest of the comment block matcher
127- let commentMatchString = "(^)+([ \\t]*[ \\t]*)(" ;
127+ let commentMatchString = "(^)([ \\t]*)("
128+ commentMatchString += this . blockCommentStart ;
129+ commentMatchString += ")?([ \\t]*)(" ;
128130 commentMatchString += characters . join ( "|" ) ;
129- commentMatchString += ")([ ]*|[:])+([^*/][^\\r\\n]*)" ;
131+ commentMatchString += ")([^\\r\\n]*)(("
132+ commentMatchString += this . blockCommentEnd
133+ commentMatchString += ")|[\\n\\r])" ;
130134
131135 // Use start and end delimiters to find block comments
132136 let regexString = "(^|[ \\t])(" ;
133137 regexString += this . blockCommentStart ;
134- regexString += "[\\s])+ ([\\s\\S]*?)(" ;
138+ regexString += "[\\s]?) ([\\s\\S]*?)(" ;
135139 regexString += this . blockCommentEnd ;
136140 regexString += ")" ;
137141
@@ -151,7 +155,7 @@ export class Parser {
151155 let range : vscode . DecorationOptions = { range : new vscode . Range ( startPos , endPos ) } ;
152156
153157 // Find which custom delimiter was used in order to add it to the collection
154- let matchString = line [ 3 ] as string ;
158+ let matchString = line [ 5 ] as string ;
155159 let matchTag = this . tags . find ( item => item . tag . toLowerCase ( ) === matchString . toLowerCase ( ) ) ;
156160
157161 if ( matchTag ) {
0 commit comments