Adding type values to node extensions
These will be useful later
This commit is contained in:
parent
1ffcd785f8
commit
b9dd80a142
@ -2,4 +2,5 @@ import _ from 'lodash';
|
||||
import Base from './base.js';
|
||||
|
||||
export default _.extend({}, Base, {
|
||||
type: 'match',
|
||||
});
|
||||
|
@ -2,6 +2,8 @@ import _ from 'lodash';
|
||||
import Base from './base.js';
|
||||
|
||||
export default _.extend({}, Base, {
|
||||
type: 'regexp',
|
||||
|
||||
render(container) {
|
||||
this.container = container;
|
||||
this.contents = _.map(this.matches(), match => {
|
||||
|
@ -2,6 +2,8 @@ import _ from 'lodash';
|
||||
import Base from './base.js';
|
||||
|
||||
export default _.extend({}, Base, {
|
||||
type: 'root',
|
||||
|
||||
render(container) {
|
||||
this.contents = container.group();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user