// Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell// License: MIT. (See LICENSE.)Object.defineProperty(exports,"__esModule",{value:true})// This regex comes from regex.coffee, and is inserted here by generate-index.js// (run `npm run build`).exports.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/gexports.matchToToken=function(match){vartoken={type:"invalid",value:match[0],closed:undefined}if(match[1])token.type="string",token.closed=!!(match[3]||match[4])elseif(match[5])token.type="comment"elseif(match[6])token.type="comment",token.closed=!!match[7]elseif(match[8])token.type="regex"elseif(match[9])token.type="number"elseif(match[10])token.type="name"elseif(match[11])token.type="punctuator"elseif(match[12])token.type="whitespace"returntoken}