function parseBooleanConfig(string,comment){var items={};// Collapse whitespace around `:` and `,` to make parsing easier
string=string.replace(/\s*([:,])\s*/g,"$1");string.split(/\s|,+/).forEach(function(name){if(!name){return;}var pos=name.indexOf(":");var value=void 0;if(pos!==-1){value=name.substring(pos+1,name.length);name=name.substring(0,pos);}items[name]={value:value==="true",comment:comment};});return items;}
Parses a list of "name:boolean_value" or/and "name" options divided by comma or
whitespace.
@param {string} string The string to parse.
@param {Comment} comment The comment node which has the string.
@returns {Object} Result map object of names and boolean values