[go: up one dir, main page]

Menu

#19 Wrong match with JSPs

colorer-take5
closed-fixed
HRC codes (39)
3
2003-12-30
2003-09-21
No

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>

Discussion

  • Igor Russkih

    Igor Russkih - 2003-09-22

    Logged In: YES
    user_id=313042

    This is not a bug, but special recursive behaviour, which
    guarantees correct highlighting of code.

     
  • Igor Russkih

    Igor Russkih - 2003-09-22
    • status: open --> closed-invalid
     
  • Volker Reichel

    Volker Reichel - 2003-09-22

    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>

     
  • Volker Reichel

    Volker Reichel - 2003-09-22

    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>

     
  • Volker Reichel

    Volker Reichel - 2003-09-22
    • status: closed-invalid --> open-invalid
     
  • Igor Russkih

    Igor Russkih - 2003-12-30
    • labels: --> HRC codes
    • milestone: --> colorer-take5
    • priority: 5 --> 3
    • status: open-invalid --> closed-invalid
     
  • Igor Russkih

    Igor Russkih - 2003-12-30
    • assigned_to: nobody --> lomecb
     
  • Igor Russkih

    Igor Russkih - 2003-12-30
    • status: closed-invalid --> closed-fixed
     

Log in to post a comment.