From: SourceForge.net <no...@so...> - 2012-01-13 18:56:59
|
Bugs item #3473165, was opened at 2012-01-12 16:16 Message generated for change (Comment added) made by kog13 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3473165&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: severe bug >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Damien (kog13) Assigned to: Nobody/Anonymous (nobody) Summary: Java mode syntax highlighting breaks on string escaping Initial Comment: When editing a java file, a double-quote string is supposed to highlight up to a non-escaped quote, but currently it treats all backslashes as escaping the quote. For example, in the line if (lastArg.startsWith("\\")) { the second backslash is the escaped character, but it's treated as escaping the quote, and everything up to the end of the line is highlighted as a string. This looks weird and breaks bracket matching. Tested with the current jEdit trunk, revision 20767 ---------------------------------------------------------------------- >Comment By: Damien (kog13) Date: 2012-01-13 10:56 Message: I just committed a fix by adding the line <SEQ TYPE="LITERAL4">\\</SEQ> to both the double-quote and simple-quote literal rules in front of their respective quote-escaping seqs. It seems to fix the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3473165&group_id=588 |