Open-source IoT Platform - Device management, data collection, processing and visualization.
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.
 
 
 
 
 
 

18 lines
568 B

"use strict";
const SafeParser = require("postcss-safe-parser/lib/safe-parser");
const templateTokenize = require("./template-tokenize");
const helper = require("./template-parser-helper");
class TemplateSafeParser extends SafeParser {
createTokenizer () {
this.tokenizer = templateTokenize(this.input, { ignoreErrors: true });
}
other () {
const args = arguments;
return helper.literal.apply(this, args) || super.other.apply(this, args);
}
freeSemicolon () {
return helper.freeSemicolon.apply(this, arguments);
}
}
module.exports = TemplateSafeParser;