nl_tokens: STATE UPDATES Used to get the editor into a consistent state again when options change .
pl_tokens: function loadMode ( cm ) { var doc = cm . view . doc ; cm . view . <mask> = CodeMirror . getMode ( cm . options , cm . options . mode ) ; doc . iter ( 0 , doc . size , function ( line ) { line . stateAfter = null ; } ) ; cm . view . frontier = 0 ; startWorker ( cm , 100 ) ; }