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 {") } }