You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
510 B
21 lines
510 B
'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() {
|
|
const args = arguments;
|
|
|
|
return helper.literal.apply(this, args) || super.other.apply(this, args);
|
|
}
|
|
freeSemicolon() {
|
|
return helper.freeSemicolon.apply(this, arguments);
|
|
}
|
|
}
|
|
module.exports = TemplateParser;
|