#2194 ASP Syntax highlight bug w/comment

minor bug
open
nobody
5
2009-12-01
2004-08-11
Anonymous
No

Comments in Microsoft ASP and VBScript start with an
apostrophe and end at the end of line OR until a closing
tag occurs. The syntax highlighting does not recognize
the second case.

For example, let's use the following ASP fragment in
an .asp file:

<% ' ASP code fragment %>

Starting with the apostrophe and ending at the end of
line, the syntax highlighter colorizes as a comment. But
it should NOT treat the ending tag, %>, as part of the
comment.

Thanks,

Alan
jedit@boneseye.com

Discussion

  • Logged In: NO

    duplicate of bug 1006182.

    Please can I stop modifying my coworkers code just so I can
    read it?

     
  • Logged In: NO

    JEdit 4.2 doesn't fix it.

    Putting this in your vbscript.xml comes close:
    <SPAN TYPE="COMMENT1" NO_LINE_BREAK="TRUE">
    <BEGIN>&apos;</BEGIN>
    <END>%&gt;</END>
    </SPAN>
    but not close enough. The ending tag in swallowed by the
    comment and doesn't get you out of VBScript mode. Apart
    from that (huge probelm) it works.

    Trying to find docs on the highlighter but failed.

     
  • Townsfolk
    Townsfolk
    2009-12-01

    • status: open --> pending
     
  • Townsfolk
    Townsfolk
    2009-12-01

    This bug is very old, if it still exists in current development version of jEdit (4.3pre18/pre19) please reopen it. Otherwise it will be closed out automatically by the SF tracker system.

     
  • Townsfolk
    Townsfolk
    2009-12-01

    Sorry. resetting to open until someone has time to look into it.

     
  • Townsfolk
    Townsfolk
    2009-12-01

    • status: pending --> open