GNU bug report logs -
#7204
javascript in html-mode (multiple major modes)
Previous Next
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
View this message in rfc822 format
GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1
It is an unmodified Emacs.
Code with the problem
<!-- Begin of the file with the bug -->
<html>
<head>
<title></title>
<script type="text/javascript">
function test(){
aVar = 2;
if (aVar < 5){ // This is the problematic if
alert("Test();");
}
} // If you remove } and add again } emacs tell you Mismatched
parenthesis
</script>
</head>
<body>
Hello world!
</body>
</html>
<!-- End of the file the bug -->
<!-- Begin of a file without problem-->
<html>
<head>
<title></title>
<script type="text/javascript">
function test(){
aVar = true;
if (aVar){
alert("Test();");
}
} // <-- If you remove } and add again } emacs can match parenthesis
</script>
</head>
<body>
Hello world!
</body>
</html>
<!-- End of a file without problem -->
This bug report was last modified 9 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.