tc39 / proposal-regexp-named-groups

Named capture groups for JavaScript RegExps
https://tc39.github.io/proposal-regexp-named-groups/
222 stars 21 forks source link

\k only changes semantics in the presence of named groups #6

Closed bakkot closed 8 years ago

bakkot commented 8 years ago

As mentioned today.

It's not clear to me whether \k followed by something other than <foo> should be an error in a RegExp with a named group, although I think it probably should.

littledan commented 8 years ago

I like this option, and it got the agreement of the committee. I'd merge a PR which said, this is actually what we're doing, if you feel like writing it up.

bakkot commented 8 years ago

@littledan, done.