From: SourceForge.net <no...@so...> - 2007-09-10 00:25:33
|
Bugs item #846913, was opened at 2003-11-22 06:47 Message generated for change (Comment added) made by k_satoda You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=846913&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: text area and syntax packages Group: normal bug Status: Pending Resolution: Works For Me Priority: 6 Private: No Submitted By: Derek Groothuis (dgroo) Assigned to: Nobody/Anonymous (nobody) Summary: Syntax Highlighting doesn't ignore comments and strings Initial Comment: Howdy, There is a small but annoying bug in the syntax highlighting (which manifests most obviously in JSPs). I'm not sure it can even easily be fixed, but if it could, that would be lovely. Take the following code: <p> <% if (something) { %> Some Text <% } // end if %> </p> The line comment embedded within the chunk of Java code causes jEdit to think that the rest of that line is a comment, including the %>, so it doesn't think that the code block ever completes (and the rest of the page, or a fair chunk of it) is then highlighted as if it is java code. Don't know if it is fixable in a general way, but it would certainly be nice. (As an aside - if there was any way to change background colord on 'sub-language highlighting' (i.e., to make the java code have a slightly shaded background, or whatever) that would also be exceptionally useful.) Thanks... --Derek ---------------------------------------------------------------------- >Comment By: Kazutoshi Satoda (k_satoda) Date: 2007-09-10 09:25 Message: Logged In: YES user_id=1483238 Originator: NO Ah, the original problem was reported to jsp mode. I can reproduce it in jsp mode too. ---------------------------------------------------------------------- Comment By: Kazutoshi Satoda (k_satoda) Date: 2007-09-10 09:20 Message: Logged In: YES user_id=1483238 Originator: NO What mode did you try? I can reproduce the problem in php mode at svn trunk r10474. ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2007-09-10 07:37 Message: Logged In: YES user_id=1477607 Originator: NO This bug is VERY old, and I cannot reproduce it with jEdit 4.3pre11 - the > after the comment is colored differently than the comment. Does this bug still exist? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=846913&group_id=588 |