restore old behavior of token and add onMatch. fixes #1269
{,5} isn't js regexp a quantifier
Merge pull request #1276 from ajaxorg/higlighting/onMatch

restore old behavior of token and add onMatch. fixes #1269