diff --git a/lib/less/parser.js b/lib/less/parser.js index 5b21670f..d24bfc2f 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -323,7 +323,7 @@ less.parser = { var e, t; c = $(this.combinator); - e = $(/[.#:]?[a-zA-Z0-9_-]+/g) || $('*') || $(this.attribute) || $(/\(.*?\)/g); + e = $(/[.#:]?[a-zA-Z0-9_-]+/g) || $('*') || $(this.attribute) || $(/\([^)]*\)/g); if (e) { return new(node.Element)(c, e) } },