Skip to content

Commit

Permalink
Allow for whitespace before comment block
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhamilton committed Apr 26, 2013
1 parent 608bba3 commit eedf508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Parser.prototype._findElements = function(block)
block = block.replace(/\n/g, "\uffff");

// Elements start with @
var elementsRegExp = /(@(\w*)\s?(.+?)(?=\uffff@|$))/gm;
var elementsRegExp = /(@(\w*)\s?(.+?)(?=\uffff[\s\*]*@|$))/gm;
var matches = elementsRegExp.exec(block);
while(matches)
{
Expand Down

0 comments on commit eedf508

Please sign in to comment.