nl_tokens: Add generator . A generator function <code > fn< / code > will be called only if current abbreviation matches <code > regexp< / code > regular expression and this function should return <code > null< / code > if abbreviation cannot be resolved
pl_tokens: function ( regexp , fn , options ) { if ( _ . isString ( regexp ) ) regexp = new RegExp ( regexp ) ; generators . add ( function ( node , syntax ) { var m ; if ( ( m = regexp . exec ( node . name ( ) ) ) ) { return fn ( m , <mask> , syntax ) ; } return null ; } , options ) ; }