forked from lix-project/lix-website
19 lines
488 B
JavaScript
19 lines
488 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const helper = require('./template-parser-helper');
|
||
|
const Parser = require('postcss/lib/parser');
|
||
|
const templateTokenize = require('./template-tokenize');
|
||
|
|
||
|
class TemplateParser extends Parser {
|
||
|
createTokenizer() {
|
||
|
this.tokenizer = templateTokenize(this.input);
|
||
|
}
|
||
|
other(start) {
|
||
|
return helper.literal.call(this, start) || super.other.call(this, start);
|
||
|
}
|
||
|
freeSemicolon(token) {
|
||
|
return helper.freeSemicolon.call(this, token);
|
||
|
}
|
||
|
}
|
||
|
module.exports = TemplateParser;
|