Matcher function for ctrlp implemented in lua.
Other implementation:
- ctrlp-py-matcher in python
- ctrlp-cmatcher in C
let g:ctrlp_match_func = { 'match': 'ctrlp#luamatcher#Match' }
The fuzzy match is implemented as pattern: abc
-> a[^a]*b[^b]*c[^c]*
The results are then sorted by length.