Browse files

Issue #473 Allow multline mixin arguments.

  • Loading branch information...
1 parent e5da902 commit fe54beb4ff44b1aeaf6ecabc84b452edae827f42 bitech committed Apr 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/lexer.js
View
2 lib/lexer.js
@@ -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];

0 comments on commit fe54beb

Please sign in to comment.