aboutsummaryrefslogtreecommitdiff
path: root/_mint/parser/functions.js
blob: 96a15f1146a0a0fce58b194445e3596b4e47815d (plain)
1
2
3
4
5
6
7
const MintParser = require('./base');

module.exports = class MintParserFunctions extends MintParser {
    parse(file) {
        return file.replace(/fn ([a-zA-Z\-_]*)\(([a-zA-Z\-_, ]*)\)( |){((.|\n)*)}/gm, "function $1 ($2) {$4}")
    }
}