nl_tokens: Register the custom processor
pl_tokens: function registerProcessor ( existedProcessors , extnameProcessorMap , opts ) { let { name , <mask> , deps , rext , extnames , options , order , hook } = opts ; if ( ! name ) { throw new Error ( 'missing processor name to register' ) ; } if ( existedProcessors . hasOwnProperty ( name ) ) { // override existed processor definition overrideProcessor ( existedProcessors [ name ] , extnameProcessorMap , opts ) ; } else { existedProcessors [ name ] = initProcessorInfo ( name , { processor , deps , rext , extnames , options , order , hook } , existedProcessors ) ; addFileExtnameAssociatedProcessor ( extnames , name , extnameProcessorMap ) ; } // resort the file extname associated processors execution order if ( extnames && ! Array . isArray ( extnames ) ) { extnames = [ extnames ] ; } extnames && extnames . forEach ( k => sortDefaultProcessors ( extnameProcessorMap [ k ] , existedProcessors ) ) ; }