quasi-literal strawman

Ash Berlin ash_js at firemirror.com
Thu Apr 1 03:48:16 PDT 2010


On 29 Dec 2009, at 16:36, Mike Samuel wrote:
> 2009/12/28 Waldemar Horwat <waldemar at google.com>:
>> Mike Samuel wrote:
>>> 
>>> That's the case right now, except that to escape a backtick one does
>>> $\`  instead of \`.
>> 
>> Having `\`` not do what I'd expect escaping to do truly surprised me.  I
>> thought that this was just a bug in the grammar when I read the wiki page.
>> 
>> The grammar has other bugs having to do with \ characters inside identifiers
>> and QuasiLiteralBodyParts.
> 
> Are you referring to problems with something like like
>  `$foo\u0061\u0020`
> where the Identifier production consumes both escape sequences but the
> second makes the identifier illegal?
> 
> So an dentifier production that would limit the UnicodeEscapeSequence
> to matching classes (L*, Mc, Mb, Nd, Nl, Pc) and the single codepoints
> (_, $, ZWNJ, ZWJ).
> 


Has there been any feedback on quasi-literal at any of the TC39 meeting(s)?


More information about the es-discuss mailing list