/*global global*/ (function pdcomment_init() { // parses the prettydiff settings comment // // - Source Priorities: // * the prettydiff comment is only accepted if it occurs before non-comments (near the top) // * options.source is the priority material for reading the comment // * the prettydiff comment will be processed from options.diff only if it present there, missing from options.source, and options.mode is diff // // - Examples: // /*prettydiff.com width:80 preserve:4*/ // /* prettydiff.com width:80 preserve:4 */ // /*prettydiff.com width=80 preserve=4 */ // // prettydiff.com width=80 preserve:4 // // // // - Parsing Considerations: // * there may be any amount of space at the start or end of the comment // * "prettydiff.com" must exist at the start of the comment // * comment must exist prior to non-comment tokens (near top of code) // * parameters are name value pairs separated by white space // * the delimiter separating name and value is either ":" or "=" characters "use strict"; const pdcomment = function pdcomment_(options) { let pdcom = options.source.search(/((\/(\*|\/))|