Re: [code][textadept] highlightig template strings in javascript

From: Mitchell <m.att.foicica.com>
Date: Fri, 18 Mar 2016 08:32:24 -0400 (EDT)

Hi Heck,

On Fri, 18 Mar 2016, Heck Fy wrote:

> hello!
>
> old - simple strings:
>
> 'aaa'
> "bbb"
>
> new - added by the latest standard - template strings
>
> `hello, ${name}`
>
> diff:
>
> 20a21
> > local template_str = l.delimited_range('`')
> 23c24
> < local string = token(l.STRING, sq_str + dq_str) + token(l.REGEX,
> regex_str)
> ---
> > local string = token(l.STRING, sq_str + dq_str + template_str) +
> token(l.REGEX, regex_str)

Thanks! Committed.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 18 Mar 2016 - 08:32:24 EDT

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2016 - 06:49:39 EDT