Subject: Re: bug#7204: html-mode do not match { } when there is a if with <

From: Stefan Monnier <[email-masked]>
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