carto
Version:
Mapnik Stylesheet Compiler
18 lines (15 loc) • 399 B
JavaScript
(function(tree) {
tree.Keyword = function Keyword(value) {
this.value = value;
var special = {
'transparent': 'color',
'true': 'boolean',
'false': 'boolean'
};
this.is = special[value] ? special[value] : 'keyword';
};
tree.Keyword.prototype = {
ev: function() { return this; },
toString: function() { return this.value; }
};
})(require('../tree'));