Skip to content

Commit

Permalink
Issue pugjs#473 Allow multline mixin arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitech committed Apr 14, 2012
1 parent e5da902 commit fe54beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Lexer.prototype = {

mixin: function(){
var captures;
if (captures = /^mixin +([-\w]+)(?: *\((.*)\))?/.exec(this.input)) {
if (captures = /^mixin +([-\w]+)(?: *\(((?:(\(.*?\))|(?:"[\s\S]*?")|(?:'[\s\S]*?')|(?:[\s\S])*?)*?)\))/.exec(this.input)) {
this.consume(captures[0].length);
var tok = this.tok('mixin', captures[1]);
tok.args = captures[2];
Expand Down

0 comments on commit fe54beb

Please sign in to comment.