4 ms·
> This defines a named capture group, <m>. I thought JavaScript regexes don't support named capturing groups. Is Atom using some library or custom functionalit
by spinningarrow 11y ago
> This defines a named capture group, <m>.
I thought JavaScript regexes don't support named capturing groups. Is Atom using some library or custom functionality for that?
EDIT: Or is it a CoffeeScript addition? In their table of contents I only see regex blocks mentioned though (http://coffeescript.org/#regexes http://coffeescript.org/#regexes).
- fuzionmonkey 11y agohttps://github.com/atom/node-oniguruma https://github.com/atom/node-oniguruma
- mwcampbell 11y agoWould switching to standard JS regular expressions substantially improve Atom's performance, even though it would mean losing some advanced regex features? I remember hearing that V8 JIT-compiles regular expressions to native code.