blob: 88e6366734af31dfec96d8efe866c057aff0dcaf (
plain)
1
2
3
4
5
6
7
|
const MintParser = require('./base');
module.exports = class MintParserConditions extends MintParser {
parse(file) {
return file.replace(/^( *|)if (.[^{]*)( |){/gm, "if ($2) {").replace(/^( *|)(}|} |)elif (.[^{]*)( |){/gm, "} else if $3 {")
}
}
|