bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9183: js-mode highlights quotes inside regexp character sets as stri


From: Štěpán Němec
Subject: bug#9183: js-mode highlights quotes inside regexp character sets as string
Date: Fri, 12 Aug 2011 19:25:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

On Fri, 12 Aug 2011 17:48:11 +0200
Stefan Monnier wrote:

> I've installed the patch below which should fix the problem, tho it may
> introduce others.  Please try it out.

That seems to work fine, thank you!

> Hmm, that makes it more interesting.
> Especially if you ignore semantics and focus on syntax where it would
> seem that "x = /foo/ / /bar/;" would then be valid, tho meaningless).

Heh. And indeed spidermonkey does accept that, too. You can apparently
even divide string literals: "a" / "b" => NaN

-- 
Štěpán





reply via email to

[Prev in Thread] Current Thread [Next in Thread]