nl_tokens: Capture type with the given regex .
pl_tokens: function ( type , regex ) { if ( typeof regex === 'function' ) { return this . set . apply ( this , arguments ) ; } this . regex . set ( type , regex ) ; this . set ( type , function ( ) { var parsed = this . parsed ; var pos = this . <mask> ( ) ; var m = this . match ( regex ) ; if ( ! m || ! m [ 0 ] ) return ; var prev = this . prev ( ) ; var node = pos ( { type : type , val : m [ 0 ] , parsed : parsed , rest : this . input } ) ; if ( m [ 1 ] ) { node . inner = m [ 1 ] ; } define ( node , 'inside' , this . stack . length > 0 ) ; define ( node , 'parent' , prev ) ; prev . nodes . push ( node ) ; } . bind ( this ) ) ; return this ; }