New % function, to perform string interpolation

This commit is contained in:
cloudhead
2010-04-30 14:06:36 -04:00
parent f3e28e08bf
commit d75becf9ba
2 changed files with 11 additions and 1 deletions

View File

@@ -364,7 +364,7 @@ less.Parser = function Parser(env) {
call: function () {
var name, args;
if (! (name = $(/([a-zA-Z0-9_-]+)\(/g))) return;
if (! (name = $(/([a-zA-Z0-9_-]+|%)\(/g))) return;
if (name[1].toLowerCase() === 'alpha') { return $(this.alpha) }