GNU bug report logs - #7204
javascript in html-mode (multiple major modes)

Previous Next

Package: emacs;

Reported by: Guy Leblanc <gleblanc <at> ergoigl.com>

Date: Tue, 12 Oct 2010 21:29:02 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 7204 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Guy Leblanc <gleblanc <at> ergoigl.com>
Cc: 7204 <at> debbugs.gnu.org
Subject: Re: bug#7204: html-mode do not match { } when there is a if with <
Date: Tue, 12 Oct 2010 21:28:23 -0400
html-mode is not clever enough to know about scripts.  So in html-mode,
"<" is treated as a kind of open-paren, just like ( and { and that
applies inside <script>...</script> just like elsewhere.

To fix this, you need support for "multiple major modes" or
something similar.  You may wan to check mmm-mode.el or nxhtml or
multi-mode.el, ...


        Stefan




This bug report was last modified 9 years and 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.