regexper-static/src/js/parser/javascript/literal.js

18 lines
332 B
JavaScript
Raw Normal View History

import _ from 'lodash';
import Base from './base.js';
export default _.extend({}, Base, {
type: 'literal',
render() {
this.container.addClass('literal');
this.label = this.render_label(this.container, '"' + this.literal.textValue + '"');
this.label.select('rect').attr({
rx: 3,
ry: 3
});
}
});