mirror of
https://github.com/less/less.js.git
synced 2026-02-10 15:05:09 -05:00
15 lines
364 B
JavaScript
15 lines
364 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;
|
|
}
|
|
}
|
|
};
|
|
|
|
})(require('../tree'));
|