nl_tokens: Advance to the next non - escaped character
pl_tokens: function advanceTo ( input , endChar ) { var ch = <mask> . charAt ( 0 ) ; var tok = { len : 1 , val : '' , esc : '' } ; var idx = 0 ; function advance ( ) { if ( ch !== '\\' ) { tok . esc += '\\' + ch ; tok . val += ch ; } ch = input . charAt ( ++ idx ) ; tok . len ++ ; if ( ch === '\\' ) { advance ( ) ; advance ( ) ; } } while ( ch && ch !== endChar ) { advance ( ) ; } return tok ; }