Hi,
When I escape a double-quote inside a regexp of a javascript snippet, the syntax coloring is off.
See the attached screenshot for an example.
The language of the page is set to HTML.
HTH,
- n.
On 26/10/2005, at 15.38, Ned Baldessin wrote:
Hi, When I escape a double-quote inside a regexp of a javascript snippet, the syntax coloring is off.
Hmm.. the regexps in the language files are rather complicated, using begin/end and some stuff I didn't keep uo to date with ;-). Anyone knows a reason for not just using a simple pattern? The current one will also fail for ' and likely for other block-things.
-- Sune.
On 26/10/2005, at 16.01, Sune Foldager wrote:
When I escape a double-quote inside a regexp of a javascript snippet, the syntax coloring is off.
Hmm.. the regexps in the language files are rather complicated, using begin/end and some stuff I didn't keep uo to date with ;-). Anyone knows a reason for not just using a simple pattern?
Ambiguity with division:
math = 43 /2/ 4; regexp = /(?x) # continue at next line .*/
On 26/10/2005, at 15.38, Ned Baldessin wrote:
When I escape a double-quote inside a regexp of a javascript snippet, the syntax coloring is off.
See the attached screenshot for an example.
The problem is that the regexp isn't picked up in the first place. Regexps hasn't been working for JS for some time (since the precedence system was changed), I've fixed that now.