Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Mathias Bynens
On 26 Aug 2014, at 02:16, Norbert Lindenberg ecmascr...@lindenbergsoftware.com wrote: […] Thanks for confirming. Sounds like my “ES6 Unicode regular expressions to ES5” transpiler is working correctly, then: https://github.com/mathiasbynens/regexpu Demo: http://mothereff.in/regexpu (Bug

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Allen Wirfs-Brock
I've thought about this a bit. I was initially inclined to agree with the idea of extending the existing character classes similar to what Mathias' proposes. But I now think that is probably not a very good idea and that what is currently spec'ed (essentially that the /u flag doesn't change

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Mathias Bynens
On 26 Aug 2014, at 19:01, Allen Wirfs-Brock al...@wirfs-brock.com wrote: I've thought about this a bit. I was initially inclined to agree with the idea of extending the existing character classes similar to what Mathias' proposes. But I now think that is probably not a very good idea and

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Norbert Lindenberg
On Aug 26, 2014, at 10:01 , Allen Wirfs-Brock al...@wirfs-brock.com wrote: So, here is a summary of my proposal: 3) Reserve within /u RegExp patterns, the syntax \p{characters} and \P{characters} This was already decided by TC39 at the March 2012 meeting, and if I read the spec correctly,

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Claude Pache
Le 26 août 2014 à 19:01, Allen Wirfs-Brock al...@wirfs-brock.com a écrit : 3) Reserve within /u RegExp patterns, the syntax \p{characters} and \P{characters} I'll go even further: when the `u` flag is on, it shall be verboten for implementations to interpret `\` followed by one of 0-9, A-Z or

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Allen Wirfs-Brock
On Aug 26, 2014, at 11:16 AM, Norbert Lindenberg wrote: On Aug 26, 2014, at 10:01 , Allen Wirfs-Brock al...@wirfs-brock.com wrote: So, here is a summary of my proposal: 3) Reserve within /u RegExp patterns, the syntax \p{characters} and \P{characters} This was already decided by

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Claude Pache
Le 26 août 2014 à 20:15, Mathias Bynens math...@qiwi.be a écrit : On 26 Aug 2014, at 19:01, Allen Wirfs-Brock al...@wirfs-brock.com wrote: I've thought about this a bit. I was initially inclined to agree with the idea of extending the existing character classes similar to what Mathias'

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Norbert Lindenberg
On Aug 26, 2014, at 11:15 , Mathias Bynens math...@qiwi.be wrote: On 26 Aug 2014, at 19:01, Allen Wirfs-Brock al...@wirfs-brock.com wrote: I see one remaining issue: In ES5 (and ES6): `/a-z/i` does not match U+017F (ſ) or U+212A (K) because the ES canonicalization algorithm excludes

Re: Questions regarding ES6 Unicode regular expressions

2014-08-26 Thread Allen Wirfs-Brock
On Aug 26, 2014, at 1:45 PM, Norbert Lindenberg wrote: On Aug 26, 2014, at 11:15 , Mathias Bynens math...@qiwi.be wrote: On 26 Aug 2014, at 19:01, Allen Wirfs-Brock al...@wirfs-brock.com wrote: I see one remaining issue: In ES5 (and ES6): `/a-z/i` does not match U+017F (ſ) or U+212A

Questions regarding ES6 Unicode regular expressions

2014-08-25 Thread Mathias Bynens
Norbert’s original proposal for the `u` flag (http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/#RegExp) mentioned the following: Possibly the definition of the character classes `\d\D\w\W\b\B` is extended to their Unicode extensions, such as all characters in the

Fwd: Questions regarding ES6 Unicode regular expressions

2014-08-25 Thread Till Schneidereit
(Forwarding to Norbert as I don't know how closely he follows es-discuss.) -- Forwarded message -- From: Mathias Bynens math...@qiwi.be Date: Mon, Aug 25, 2014 at 10:59 AM Subject: Questions regarding ES6 Unicode regular expressions To: es-discuss es-discuss@mozilla.org

Re: Questions regarding ES6 Unicode regular expressions

2014-08-25 Thread Anne van Kesteren
On Mon, Aug 25, 2014 at 11:44 AM, Till Schneidereit t...@tillschneidereit.net wrote: (Forwarding to Norbert as I don't know how closely he follows es-discuss.) I think last year somewhere regular expression extensions were postponed because nobody was interested in working out detailed

Re: Questions regarding ES6 Unicode regular expressions

2014-08-25 Thread Norbert Lindenberg
On Aug 25, 2014, at 1:59 , Mathias Bynens math...@qiwi.be wrote: Norbert’s original proposal for the `u` flag (http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/#RegExp) mentioned the following: Possibly the definition of the character classes `\d\D\w\W\b\B` is