nl_tokens: Finds the next one of the items
pl_tokens: function findNext ( data , items , index ) { var currentIndex = data . length + 1 , <mask> = '' ; for ( var i = 0 ; i < items . length ; i ++ ) { var item = items [ i ] ; var location = data . indexOf ( item , index ) ; if ( location !== - 1 && location < currentIndex ) { currentIndex = location ; found = item ; } } if ( currentIndex === data . length + 1 ) return { index : - 1 , found : '' } ; return { index : currentIndex , found : found } ; }