nl_tokens: breakStringList
pl_tokens: function breakRoleList ( matcher , list ) { const pieces = [ ] const roleBreaker = XRegExp ( ` \\ ${ matcher . roleMatcher } \\ ` ) for ( let m = list . match ( roleBreaker ) ; m !== null ; m = list . match ( roleBreaker ) ) { const [ consumed , matched ] = m pieces . push ( matched ) list = list . substring ( consumed . length ) } const altFinder = XRegExp ( ` \\ \\ \\ ${ matcher . roleMatcher } ` ) const altMatch = list . match ( altFinder ) if ( altMatch ) { pieces . <mask> ( altMatch [ 2 ] ) } // if ... return pieces }