summaryrefslogtreecommitdiff
path: root/bin/lib/less/tree/comment.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lib/less/tree/comment.js')
-rw-r--r--bin/lib/less/tree/comment.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/lib/less/tree/comment.js b/bin/lib/less/tree/comment.js
new file mode 100644
index 00000000..f4a33840
--- /dev/null
+++ b/bin/lib/less/tree/comment.js
@@ -0,0 +1,14 @@
+(function (tree) {
+
+tree.Comment = function (value, silent) {
+ this.value = value;
+ this.silent = !!silent;
+};
+tree.Comment.prototype = {
+ toCSS: function (env) {
+ return env.compress ? '' : this.value;
+ },
+ eval: function () { return this }
+};
+
+})(require('../tree'));