It seems as if the matching algorithm for '<%' tries to
match all parenthesis ('{}') first before it accepts '%>'.
Go to line 004. Matching '%>' is found on line 008 but
the correct match is in line 004.
001: <%@page import="com.db.Test" %>
002:
003: <html>
004: <% while (true) { %>
005: <% if (a > b) { %>
006: <h1>any text</h1>
007: <% } %>
008: <% } %>
009: </html>
Logged In: YES
user_id=313042
This is not a bug, but special recursive behaviour, which
guarantees correct highlighting of code.
Logged In: YES
user_id=244756
Suppose there is a nesting error within Java code
then it is very difficult to the missing brace using the
implemented highlighting behavior.
<%@page import="com.db.Test" %>
<html>
<% while (true) { %>
<% if (a > b) { %>
<h1>any text</h1>
<% } %>
<!-- suppose here are many lines -->
<% /* some more Java code goes here. } from while is still
open%>
</html>
Logged In: YES
user_id=244756
Suppose there is a nesting error within Java code
then it is very difficult to the missing brace using the
implemented highlighting behavior.
<%@page import="com.db.Test" %>
<html>
<% while (true) { %>
<% if (a > b) { %>
<h1>any text</h1>
<% } %>
<!-- suppose here are many lines -->
<% /* some more Java code goes here. } from while is still
open */ %>
</html>