lix-website/themes/lix/assets/bootstrap/node_modules/@stylelint/postcss-css-in-js/template-parser.js

19 lines
488 B
JavaScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
'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;