Our current big fat regexps only recognize ES5-style identifier characters. See https://mathiasbynens.be/notes/javascript-identifiers-es6 . We need a separate set of, even bigger, regexps to properly parse ES6 identifiers. I am not really happy about just pasting those in and bloating up the library size. A clever alternative trick would be nice.
Our current big fat regexps only recognize ES5-style identifier characters. See https://mathiasbynens.be/notes/javascript-identifiers-es6 . We need a separate set of, even bigger, regexps to properly parse ES6 identifiers. I am not really happy about just pasting those in and bloating up the library size. A clever alternative trick would be nice.