From: SourceForge.net <no...@so...> - 2007-06-30 02:20:07
|
Bugs item #1718765, was opened at 2007-05-14 09:12 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1718765&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: editor core Group: Regressive (new to devel) >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: m--s (m--s) Assigned to: Nobody/Anonymous (nobody) Summary: bad handling of the escapes introduced after jEdit 4.2 Initial Comment: HOW TO REPRODUCE: 1. type in the following text into a new buffer: #!/bin/sh echo '[inside]\'[still inside]'[outside] echo '[inside]\'[still inside]'[outside] echo "[inside]\"[still inside]"[outside] echo "[inside]\"[still inside]"[outside] 2. save it under any name, and then reload - that way the "shellscript" mode will be activated, and syntax coloring will start working 3. RESULT: it depends on the jEdit version: jEdit 4.2: everyting is just fine, jEdit 4.3pre9: first lines are colorized correctly, but in the last two lines the sequence \" is treated as an ending of the SPAN (but NOT as the beginning) - this should not be the case, because there is an attribute ESCAPE="\" in the RULEset, which should prevent that. The difference between the treatment of ' and " (in shellscript.xml) is that the former is a simple SPAN, whereas the latter is also DELEGATEd to another RULEset. Same stands for `. ======================================================= The reason may be the transition away from the gnu.regexp engine, but I don't know enough about jEdit's core to claim that. I haven't checked any other version of jEdit, so I don't know exactly when this bug has been introduced. I am sure that the shellscript.xml itself doesn't do any harm to this, as the differences are minor and regarding only the "Readins" syntax (because of the use of the regular expressions). This bug is really annoying, and has forced me to remove the DELEGATE attribute from both the ` and ", otherwise the syntax coloring goes mad (this is the main virtue of bash programming - above the certain level, this is really a write-only language :) ). Although I haven't tested it, but I am almost sure this bug also concerns other, more popular :) programming languages. Everything has been tested on WinXP SP2 (Polish), jre6 from Sun. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2007-06-29 19:20 Message: Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Marcelo Vanzin (vanza) Date: 2007-06-14 21:48 Message: Logged In: YES user_id=75113 Originator: NO This looks fixed in SVN. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1718765&group_id=588 |