mirror of
https://github.com/less/less.js.git
synced 2026-02-06 13:05:07 -05:00
20 lines
485 B
JavaScript
20 lines
485 B
JavaScript
(function (tree) {
|
|
|
|
tree.Keyword = function (value) { this.value = value };
|
|
tree.Keyword.prototype = {
|
|
eval: function () { return this },
|
|
toCSS: function () { return this.value },
|
|
compare: function (other) {
|
|
if (other instanceof tree.Keyword) {
|
|
return other.value === this.value ? 0 : 1;
|
|
} else {
|
|
return -1;
|
|
}
|
|
}
|
|
};
|
|
|
|
tree.True = new(tree.Keyword)('true');
|
|
tree.False = new(tree.Keyword)('false');
|
|
|
|
})(require('../tree'));
|