Re: [Ctags-devel] How to parse this line
Brought to you by:
dhiebert
From: Elliott H. <en...@je...> - 2009-02-04 19:25:56
|
On Wed, February 4, 2009 04:13, David Fishburn wrote: > Good Morning. > > This is a valid line in Javascript: > return '"' + this.replace(/"/g, '\\"') + '"' > > The current jscript.c readToken method breaks it apart as: > return '"' > + > this replace ( > / > "/g, '\\" > ') + ' > "' > > > Which makes sense given the unbalanced double quotes but it obviously > wrong in context. > > Can anyone suggest what changes might be right to handle this scenario? seems like you need to teach it about regular expression literals. -- Elliott Hughes, http://www.jessies.org/~enh/ |