mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
15 lines
439 B
JavaScript
15 lines
439 B
JavaScript
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;
|