lix-website/themes/lix/assets/bootstrap/node_modules/@stylelint/postcss-css-in-js/template-parser.js
2024-04-26 22:49:34 -06:00

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;