[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9183: js-mode highlights quotes inside regexp character sets as stri
bug#9183: js-mode highlights quotes inside regexp character sets as string
Fri, 12 Aug 2011 19:25:45 +0200
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