lib/tokenize.js
function tokenizeDefine(infos) {
    return tokenize.split(function(text, tok) {
        var _infos = _.isFunction(infos)? infos.apply(null, arguments) : _.clone(infos);
        if (!_infos) return null;

        // Defaults for the sugegstion
        _infos = _.defaults(_infos, {
            index: 0,
            message: "",
            replacements: []
        });

        _infos = _.extend(tok, _infos);

        _infos.message = _.template(_infos.message)(_infos);

        return _infos;
    });
}
function tokenizeDefine(infos) {
    return tokenize.split(function(text, tok) {
        var _infos = _.isFunction(infos)? infos.apply(null, arguments) : _.clone(infos);
        if (!_infos) return null;

        // Defaults for the sugegstion
        _infos = _.defaults(_infos, {
            index: 0,
            message: "",
            replacements: []
        });

        _infos = _.extend(tok, _infos);

        _infos.message = _.template(_infos.message)(_infos);

        return _infos;
    });
}
function tokenizeDefine ( infos ) { return tokenize . split ( function ( text , tok ) { var _infos = _ . isFunction ( infos ) ? infos . apply ( null , arguments ) : _ . clone ( infos ) ; if ( ! _infos ) return null ; // Defaults for the sugegstion _infos = _ . defaults ( _infos , { index : 0 , message : "" , replacements : [ ] } ) ; _infos = _ . extend ( tok , _infos ) ; _infos . message = _ . template ( _infos . message ) ( _infos ) ; return _infos ; } ) ; }
Convert a list of tokens to some suggestions
Convert a list of tokens to some suggestions