lib/less/js/lib/less/tree/keyword.js in less-2.5.1 vs lib/less/js/lib/less/tree/keyword.js in less-2.6.0
- old
+ new
@@ -3,9 +3,10 @@
tree.Keyword = function (value) { this.value = value; };
tree.Keyword.prototype = {
type: "Keyword",
eval: function () { return this; },
genCSS: function (env, output) {
+ if (this.value === '%') { throw { type: "Syntax", message: "Invalid % without number" }; }
output.add(this.value);
},
toCSS: tree.toCSS,
compare: function (other) {
if (other instanceof tree.Keyword) {