Sha256: 4fa6fe3957f42ea5441aaddb1ff599f1efc6593d9fa089d1bccc270b2f9fd7b7

Contents?: true

Size: 439 Bytes

Versions: 5

Compression:

Stored size: 439 Bytes

Contents

var Node = require("./node");

var Keyword = function (value) { this.value = value; };
Keyword.prototype = new Node();
Keyword.prototype.type = "Keyword";
Keyword.prototype.genCSS = function (context, output) {
    if (this.value === '%') { throw { type: "Syntax", message: "Invalid % without number" }; }
    output.add(this.value);
};

Keyword.True = new Keyword('true');
Keyword.False = new Keyword('false');

module.exports = Keyword;

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ilog-0.4.1 node_modules/less/lib/less/tree/keyword.js
ilog-0.4.0 node_modules/less/lib/less/tree/keyword.js
ilog-0.3.3 node_modules/less/lib/less/tree/keyword.js
less-execjs-2.6.0.4 lib/less/js/less/lib/less/tree/keyword.js
less-execjs-2.6.0.3 lib/less/js/less/lib/less/tree/keyword.js