[go: up one dir, main page]

Menu

#92 Coloring Issues (jsp comment)

colorer-take5
open-accepted
HRC codes (39)
5
2005-09-02
2005-09-02
Ar
No

the second line is coloured when "scoped":
<% { %>
<%-- while (i < 0) 'comment1' "comment2" --%>
<% } %>

Discussion

  • Igor Russkih

    Igor Russkih - 2005-09-02

    Logged In: YES
    user_id=313042

    Please clarify the problem.

    All I see is 'comment1' highlighted as an error - and this
    is normal. single quotes should be used for single
    characters only, not strings.

     
  • Igor Russkih

    Igor Russkih - 2005-09-02
    • labels: --> HRC codes
    • milestone: --> colorer-take5
    • assigned_to: nobody --> lomecb
    • status: open --> open-postponed
     
  • Ar

    Ar - 2005-09-02

    Logged In: YES
    user_id=1024166

    second line is meant to be a comment. it is correctly
    coloured as gray when placed outside of the braces in the
    first and third lines.

     
  • Igor Russkih

    Igor Russkih - 2005-09-02

    Logged In: YES
    user_id=313042

    Now I see. will fix it.

     
  • Igor Russkih

    Igor Russkih - 2005-09-02
    • status: open-postponed --> open-accepted
     
  • Ar

    Ar - 2005-09-02

    Logged In: YES
    user_id=1024166

    sorry to have to cause you more pain:

    <% { /* comment1 */ %>
    <h1>Title</h1>
    <% out.print("works"); %>
    <% } %>

    <% { // comment2 %>
    <h2>Title</h2>
    <% out.print("works not"); %>
    <% } %>

    the first block of code is fine, but for the second block the
    parser seems to treat the "%>" after comment2 as part of the
    comment and thus everything before the next "<%" is
    ignored. nothing critical really, just thought you might want a
    challenge :P

     

Log in to post a comment.