nl_tokens: Emits a control group e . g . :
pl_tokens: function ( type , walk ) { var ctl = this . createCtl ( type + 'Group' ) ; ctl . items = [ ] ; // Tweak selector to use the generated id this . selector . id = ctl . id ; // Append a class if ( ! Array . isArray ( this . selector . classes ) ) this . selector . classes = [ ] ; this . selector . classes . push ( ctl . type ) ; // Emit root element this . out . push ( '<fieldset' ) ; this . emitSelector ( ) ; this . out . push ( '>' ) ; // Emit each item var startIdx = walk . position ; while ( walk . hasCurrent ( ) ) { walk . scrollToEol ( ) . skipWhitespaces ( ) ; if ( this . atGroupMarker ( type , walk ) ) { this . emitGroupItem ( ctl , new SubWalker ( walk , startIdx , walk . position ) ) ; startIdx = walk . position ; } } // Emit the last one this . emitGroupItem ( ctl , new SubWalker ( walk , startIdx , walk . <mask> ) ) ; this . out . push ( '</fieldset>' ) ; }